cppcheck/addons/test
Sebastian fb96e5433a
y2038 addon: Fix that check can never return True, add tests (#2417)
* y2038 addon: Fix that check can never return True, add tests

At the beginning of `check_y2038_safe()` the variable `y2038safe` should
be initialized with `True` and only be set to `False` if there are any
issues. Otherwise it could never become `True`.
In the unit tests the return value of `check_y2038_safe()` is now
verified. But it does not yet work for the "good" example. The "good"
example also returns `False` since it finds warnings in the include
file. So this verification is marked with a "FIXME" comment.

* y2038 tests: Add "good" test file that does not use time functionality

The test file y2038-test-5-good-no-time-used.c does not use any time
functionality so the y2038 addon is not allowed to issue any warnings
and the check must return with `True` (code is safe).
2019-12-03 18:49:11 +01:00
..
misra misra.py: Fix R12.4 and R13.1 crashes on large initializer lists (#2410) 2019-12-01 15:03:33 +01:00
path1 Fix per file excludes (#1437) 2018-10-18 09:17:57 +02:00
y2038 y2038 addon: Fix that check can never return True, add tests (#2417) 2019-12-03 18:49:11 +01:00
__init__.py misra.py: Fix up and improve load rules parser. (#1895) 2019-06-17 21:17:29 +02:00
cert-test.c cert.py: Add ENV33-C-EX1 exception (#2396) 2019-11-24 10:31:08 +01:00
cert-test.cpp cert.py: Fix EXP05C crash (#2392) 2019-11-23 17:41:47 +01:00
misc-test.cpp String concatenation in array: Improved handling of macros 2018-04-28 23:01:29 +02:00
naming_test.c addons/naming.py: Fix crash on unnamed arguments, add regex validation. (#1762) 2019-03-26 18:54:09 +01:00
naming_test.cpp naming.py: Fix FP for constructors/destructors (#2375) 2019-11-18 18:41:57 +01:00
namingng_test.c Added a new naming check addon. Also verifies variable and function p… (#1456) 2018-11-06 20:46:07 +01:00
test-cert.py addons/test/test-*.py: Improve documentation about running the tests 2019-09-20 13:39:38 +02:00
test-misra.py addons/test/test-*.py: Improve documentation about running the tests 2019-09-20 13:39:38 +02:00
test-y2038.py y2038 addon: Fix that check can never return True, add tests (#2417) 2019-12-03 18:49:11 +01:00
util.py Update addons structure. Make Y2038 addon works. (#2024) 2019-07-26 06:38:03 +02:00