Skip to content

Commit

Permalink
Adapt the test
Browse files Browse the repository at this point in the history
  • Loading branch information
iddm committed Dec 5, 2024
1 parent b5141b7 commit f54c2f0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/unit/test_debuggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ def test_generate_command_default(self):
def test_generate_command_supression(self):
default_valgrind = Valgrind(options="", suppressions="file")
cmd_args = default_valgrind.generate_command()
assert ['valgrind', '--error-exitcode=255', '--leak-check=full', '--errors-for-leak-kinds=definite',
'--suppressions=file'] == cmd_args
assert ['valgrind', '--error-exitcode=255', '--leak-check=full', '--errors-for-leak-kinds=definite'] == cmd_args[:4]
assert '--suppressions=' in cmd_args[4]
assert 'file' in cmd_args[4]

def test_generate_command_logfile(self):
default_valgrind = Valgrind(options="")
cmd_args = default_valgrind.generate_command('logfile')
assert ['valgrind', '--error-exitcode=255', '--leak-check=full', '--errors-for-leak-kinds=definite',
'--log-file=logfile'] == cmd_args
assert ['valgrind', '--error-exitcode=255', '--leak-check=full', '--errors-for-leak-kinds=definite'] == cmd_args[:4]
assert '--log-file=' in cmd_args[4]
assert 'logfile' in cmd_args[4]

0 comments on commit f54c2f0

Please sign in to comment.