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:
Peter Hutterer 2024-12-21 10:39:07 +10:00
parent d9de017d6c
commit 5388299117

View file

@ -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_) \