Skip to content

Commit

Permalink
undo
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Jan 4, 2025
1 parent 1ab20e6 commit 791b066
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/cli/whole-program_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,14 +371,14 @@ 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':
if 'file0' in e.attrib:
file0 = e.attrib['file0']
assert file0 == 'whole-program/nullpointer1.cpp'
assert stdout == ''
assert stderr == ''
assert ret == 1, stdout


Expand Down

0 comments on commit 791b066

Please sign in to comment.