328f98b35a
test_showtime_top5_file() assumes that all reported elements, of which the "top 5" are validated, end with the string "- 1 result(s))". This is clearly not the case when viewing the entire list: ```bash $ cppcheck --showtime=summary --quiet empty.c |grep "2 result" valueFlowLifetime(tokenlist, errorLogger, settings): 3.4e-05s (avg. 1.7e-05s - 2 result(s)) valueFlowEnumValue(symboldatabase, settings): 3e-06s (avg. 1.5e-06s - 2 result(s)) ``` As the order of items is non-deterministic, this test makes CI workflows randomly fail. This patch addresses the issue by adjusting the expected string to the reported item. |
||
---|---|---|
.. | ||
QML-Samples-TableView | ||
helloworld | ||
proj-inline-suppress | ||
proj-inline-suppress-unusedFunction | ||
proj-suppress-syntaxError | ||
proj2 | ||
trac5704 | ||
readme.txt | ||
test-clang-import.py | ||
test-helloworld.py | ||
test-inline-suppress.py | ||
test-more-projects.py | ||
test-other.py | ||
test-performance.py | ||
test-proj2.py | ||
test-project.py | ||
test-qml.py | ||
test-suppress-syntaxError.py | ||
testutils.py |
readme.txt
Systemtesting of Cppcheck CLI on some projects addons base path exclude folders importing projects * visual studio * compile database - different generators bear/cmake/.. - different platforms suppressions Different paths: * relative * absolute