test-clang-import: try to use --std=c++11
This commit is contained in:
parent
c4da64b38b
commit
1ce6eb34fb
|
@ -36,8 +36,8 @@ def check_symbol_database(code):
|
||||||
testfile = 'test.cpp'
|
testfile = 'test.cpp'
|
||||||
with open(testfile, 'w+t') as f:
|
with open(testfile, 'w+t') as f:
|
||||||
f.write(code)
|
f.write(code)
|
||||||
ret1, stdout1, stderr1 = cppcheck(['--clang', '--debug', '-v', testfile])
|
ret1, stdout1, stderr1 = cppcheck(['--clang', '--std=c++11', '--debug', '-v', testfile])
|
||||||
ret2, stdout2, stderr2 = cppcheck(['--debug', '-v', testfile])
|
ret2, stdout2, stderr2 = cppcheck(['--std=c++11', '--debug', '-v', testfile])
|
||||||
os.remove(testfile)
|
os.remove(testfile)
|
||||||
assert get_debug_section('### Symbol database', stdout1) == get_debug_section('### Symbol database', stdout2)
|
assert get_debug_section('### Symbol database', stdout1) == get_debug_section('### Symbol database', stdout2)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue