mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-02 18:00:12 +01:00
test: force an unnecessary abort after litest_abort_msg()
This is the easy way to get static analyzers to understand that calling litest_abort_msg() always fails. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1109>
This commit is contained in:
parent
7efec8f2e7
commit
f9f9bccba2
1 changed files with 3 additions and 1 deletions
|
|
@ -157,9 +157,11 @@ litest_fail_comparison_str(const char *file,
|
|||
#cond, __VA_ARGS__); \
|
||||
} while(0)
|
||||
|
||||
#define litest_abort_msg(...) \
|
||||
#define litest_abort_msg(...) {\
|
||||
litest_fail_condition(__FILE__, __LINE__, __func__, \
|
||||
"aborting", __VA_ARGS__); \
|
||||
abort(); \
|
||||
}
|
||||
|
||||
#define litest_assert_notnull(cond) \
|
||||
do { \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue