@@ -1061,33 +1061,21 @@ def test_markup_j(tmpdir):
10611061 test_file_1 = os .path .join (tmpdir , 'test_1.qml' )
10621062 with open (test_file_1 , 'wt' ):
10631063 pass
1064- test_file_2 = os .path .join (tmpdir , 'test_2.cpp ' )
1064+ test_file_2 = os .path .join (tmpdir , 'test_2.qml ' )
10651065 with open (test_file_2 , 'wt' ):
10661066 pass
1067- test_file_3 = os .path .join (tmpdir , 'test_3.qml' )
1068- with open (test_file_3 , 'wt' ):
1069- pass
1070- test_file_4 = os .path .join (tmpdir , 'test_4.cpp' )
1071- with open (test_file_4 , 'wt' ):
1072- pass
10731067
1074- args = ['--library=qt' , '-j2' , test_file_1 , test_file_2 , test_file_3 , test_file_4 ]
1068+ args = ['--library=qt' , '-j2' , test_file_1 , test_file_2 ]
10751069
10761070 exitcode , stdout , stderr = cppcheck (args )
10771071 assert exitcode == 0 , stdout if stdout else stderr
10781072 file_num = 1
1079- lines = []
1080- for line in stdout .splitlines ():
1081- if re .match ('{}/4 files checked [0-9]+% done' .format (file_num ), line ):
1082- file_num += 1
1083- else :
1084- lines .append (line )
1085- assert file_num == 5
1073+ lines = stdout .splitlines ()
10861074 assert sorted (lines ) == [
1075+ '1/2 files checked 0% done' ,
1076+ '2/2 files checked 0% done' ,
10871077 'Checking {} ...' .format (test_file_1 ),
1088- 'Checking {} ...' .format (test_file_2 ),
1089- 'Checking {} ...' .format (test_file_3 ),
1090- 'Checking {} ...' .format (test_file_4 )
1078+ 'Checking {} ...' .format (test_file_2 )
10911079 ]
10921080 assert stderr == ''
10931081
0 commit comments