mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 10:30:28 +01:00
test: slightly improve the failure message for litest_assert_not_null
Now prints
FAILED: ev != NULL
which is less ambiguous/confusing than the previous
FAILED: ev expected to be not NULL
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1122>
This commit is contained in:
parent
d9de017d6c
commit
5388299117
1 changed files with 1 additions and 1 deletions
|
|
@ -167,7 +167,7 @@ litest_fail_comparison_str(const char *file,
|
|||
do { \
|
||||
if ((cond) == NULL) \
|
||||
litest_fail_condition(__FILE__, __LINE__, __func__, \
|
||||
#cond, " expected to be not NULL\n"); \
|
||||
#cond " != NULL", "\n"); \
|
||||
} while(0)
|
||||
|
||||
#define litest_assert_comparison_int_(a_, op_, b_) \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue