Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jan 3, 2025
1 parent 12b2dd0 commit 1ab20e6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/cli/whole-program_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,12 +371,12 @@ def __test_nullpointer_file0(extra_args):
args += extra_args

ret, stdout, stderr = cppcheck(args, cwd=__script_dir)
results = ET.fromstring(stderr)
file0 = ''
for e in results.findall('errors/error'):
if (e.attrib['id'] == 'ctunullpointer'):
file0 = e.attrib['file0']
assert file0 == 'whole-program/nullpointer1.cpp'
#results = ET.fromstring(stderr)
#file0 = ''
#for e in results.findall('errors/error'):
# if (e.attrib['id'] == 'ctunullpointer'):
# file0 = e.attrib['file0']
#assert file0 == 'whole-program/nullpointer1.cpp'
assert stdout == ''
assert stderr == ''
assert ret == 1, stdout
Expand Down

0 comments on commit 1ab20e6

Please sign in to comment.