From f54c2f022dd860f8251087d93b1244d28888a244 Mon Sep 17 00:00:00 2001 From: Victor Polevoy Date: Thu, 5 Dec 2024 10:10:50 +0100 Subject: [PATCH] Adapt the test --- tests/unit/test_debuggers.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/unit/test_debuggers.py b/tests/unit/test_debuggers.py index 44cde202..d4c8a272 100644 --- a/tests/unit/test_debuggers.py +++ b/tests/unit/test_debuggers.py @@ -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]