@@ -47,8 +47,8 @@ def __check_symbol_database(tmpdir, code):
47
47
testfile = os .path .join (tmpdir , 'test.cpp' )
48
48
with open (testfile , 'w+t' ) as f :
49
49
f .write (code )
50
- ret1 , stdout1 , _ = cppcheck (['--clang' , '--debug-symdb' , testfile ])
51
- ret2 , stdout2 , _ = cppcheck (['--debug-symdb' , testfile ])
50
+ ret1 , stdout1 , _ = cppcheck (['-q' , '- -clang' , '--debug-symdb' , testfile ])
51
+ ret2 , stdout2 , _ = cppcheck (['-q' , '- -debug-symdb' , testfile ])
52
52
assert 0 == ret1 , stdout1
53
53
assert 0 == ret2 , stdout2
54
54
assert __get_debug_section ('### Symbol database' , stdout1 ) == __get_debug_section ('### Symbol database' , stdout2 )
@@ -58,8 +58,8 @@ def __check_ast(tmpdir, code):
58
58
testfile = os .path .join (tmpdir , 'test.cpp' )
59
59
with open (testfile , 'w+t' ) as f :
60
60
f .write (code )
61
- ret1 , stdout1 , _ = cppcheck (['--clang' , '--debug-ast' , testfile ])
62
- ret2 , stdout2 , _ = cppcheck (['--debug-ast' , testfile ])
61
+ ret1 , stdout1 , _ = cppcheck (['-q' , '- -clang' , '--debug-ast' , testfile ])
62
+ ret2 , stdout2 , _ = cppcheck (['-q' , '- -debug-ast' , testfile ])
63
63
assert 0 == ret1 , stdout1
64
64
assert 0 == ret2 , stdout1
65
65
assert __get_debug_section ('##AST' , stdout1 ) == __get_debug_section ('##AST' , stdout2 )
0 commit comments