Skip to content

Commit 1f992d3

Browse files
committed
fix test for -j2
1 parent c7f882e commit 1f992d3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: test/cli/whole-program_test.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,11 @@ def test_nullpointer_out_of_memory(tmpdir, single_file):
409409
f.write('#include "header.h"\n' + code1)
410410
with open(tmpdir / 'test2.c', 'wt') as f:
411411
f.write('#include "header.h"\n' + code2)
412-
413-
_, _, stderr = cppcheck(['--enable=style', '.'], cwd=tmpdir)
412+
args = [
413+
'--cppcheck-build-dir=.',
414+
'--enable=style',
415+
'.']
416+
_, _, stderr = cppcheck(args, cwd=tmpdir)
414417
results = []
415418
for line in stderr.splitlines():
416419
if line.endswith(']'):

0 commit comments

Comments
 (0)