cppcheck/test/cli
Maarten van der Schrieck 328f98b35a
test/cli/test-other.py: Fix test_showtime_top5_file. (#5847)
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.
2024-01-06 22:50:40 +01:00
..
QML-Samples-TableView runformat 2023-05-08 10:30:20 +02:00
helloworld
proj-inline-suppress Execute runformat 2023-06-10 17:37:32 +02:00
proj-inline-suppress-unusedFunction
proj-suppress-syntaxError
proj2
trac5704
readme.txt
test-clang-import.py more cleanups in handling of ignored files (#5767) 2023-12-16 21:04:45 +01:00
test-helloworld.py more cleanups in handling of ignored files (#5767) 2023-12-16 21:04:45 +01:00
test-inline-suppress.py #11733 FP unusedFunction with templates and --cppcheck-build-dir (#5085) 2023-05-26 06:13:48 +02:00
test-more-projects.py more cleanups in handling of ignored files (#5767) 2023-12-16 21:04:45 +01:00
test-other.py test/cli/test-other.py: Fix test_showtime_top5_file. (#5847) 2024-01-06 22:50:40 +01:00
test-performance.py Fix #12235 performance regression (hang) in 2.13dev (#5715) 2023-12-15 11:01:08 +01:00
test-proj2.py
test-project.py
test-qml.py refs #12167 - moved ordering of markup files into shared code / removed related test cases from executor tests (#5642) 2023-11-09 10:17:30 +01:00
test-suppress-syntaxError.py Fixed #12281 (IDE plugin integration is broken by checkers report) (#5779) 2023-12-19 15:55:29 +01:00
testutils.py Fixed #12281 (IDE plugin integration is broken by checkers report) (#5779) 2023-12-19 15:55:29 +01:00

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