@@ -143,7 +143,7 @@ def test_message_j(tmpdir):
143143 with open (test_file , 'wt' ) as f :
144144 f .write ("" )
145145
146- args = ['-j2' , test_file ]
146+ args = ['-j2' , '--no-whole-program' , test_file ]
147147
148148 _ , stdout , _ = cppcheck (args )
149149 assert stdout == "Checking {} ...\n " .format (test_file ) # we were adding stray \0 characters at the end
@@ -251,7 +251,15 @@ def test_progress_j(tmpdir):
251251 }
252252 """ )
253253
254- args = ['--report-progress=0' , '--enable=all' , '--inconclusive' , '-j2' , '--disable=unusedFunction' , test_file ]
254+ args = [
255+ '--report-progress=0' ,
256+ '--enable=all' ,
257+ '--inconclusive' ,
258+ '-j2' ,
259+ '--disable=unusedFunction' ,
260+ '--no-whole-program' ,
261+ test_file
262+ ]
255263
256264 exitcode , stdout , stderr = cppcheck (args )
257265 assert exitcode == 0 , stdout if stdout else stderr
@@ -1303,7 +1311,7 @@ def test_markup_j(tmpdir):
13031311 with open (test_file_4 , 'wt' ):
13041312 pass
13051313
1306- args = ['--library=qt' , '-j2' , test_file_1 , test_file_2 , test_file_3 , test_file_4 ]
1314+ args = ['--library=qt' , '-j2' , '--no-whole-program' , test_file_1 , test_file_2 , test_file_3 , test_file_4 ]
13071315
13081316 exitcode , stdout , stderr = cppcheck (args )
13091317 assert exitcode == 0 , stdout if stdout else stderr
@@ -2539,7 +2547,7 @@ def test_inline_suppr(tmp_path):
25392547
25402548
25412549def test_inline_suppr_j (tmp_path ):
2542- __test_inline_suppr (tmp_path , ['-j2' ])
2550+ __test_inline_suppr (tmp_path , ['-j2' , '--no-whole-program' ])
25432551
25442552
25452553def test_inline_suppr_builddir (tmp_path ):
@@ -2768,7 +2776,7 @@ def test_addon_suppr_inline(tmp_path):
27682776
27692777# TODO: remove override when all issues are fixed
27702778def test_addon_suppr_inline_j (tmp_path ):
2771- __test_addon_suppr (tmp_path , ['--inline-suppr' , '-j2' ])
2779+ __test_addon_suppr (tmp_path , ['--inline-suppr' , '-j2' , '--no-whole-program' ])
27722780
27732781
27742782def test_addon_suppr_cli_line (tmp_path ):
@@ -4648,6 +4656,7 @@ def test_ipc(tmp_path):
46484656 '-j2' ,
46494657 '--executor=process' ,
46504658 '--no-cppcheck-build-dir' ,
4659+ '--no-whole-program' ,
46514660 str (test_file )
46524661 ]
46534662
@@ -4680,6 +4689,7 @@ def test_ipc_suppressions(tmp_path):
46804689 '-j2' ,
46814690 '--executor=process' ,
46824691 '--no-cppcheck-build-dir' ,
4692+ '--no-whole-program' ,
46834693 '--suppress=id0:test1.c' ,
46844694 str (tmp_path )
46854695 ]
@@ -4724,6 +4734,7 @@ def test_ipc_inline_suppressions(tmp_path):
47244734 '-j2' ,
47254735 '--executor=process' ,
47264736 '--no-cppcheck-build-dir' ,
4737+ '--no-whole-program' ,
47274738 '--inline-suppr' ,
47284739 str (tmp_path )
47294740 ]
0 commit comments