mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 14:00:29 +01:00
test: use check's strcmp API instead of strcmp
Prints out the strings on failure - easier for debugging Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
145cdf6c79
commit
7149cc9392
1 changed files with 2 additions and 2 deletions
|
|
@ -158,7 +158,7 @@ START_TEST(path_added_seat)
|
|||
ck_assert(seat != NULL);
|
||||
|
||||
seat_name = libinput_seat_get_logical_name(seat);
|
||||
ck_assert_int_eq(strcmp(seat_name, "default"), 0);
|
||||
ck_assert_str_eq(seat_name, "default");
|
||||
|
||||
libinput_event_destroy(event);
|
||||
}
|
||||
|
|
@ -237,7 +237,7 @@ START_TEST(path_add_device)
|
|||
libinput_event_destroy(event);
|
||||
}
|
||||
|
||||
ck_assert_int_eq(strcmp(sysname1, sysname2), 0);
|
||||
ck_assert_str_eq(sysname1, sysname2);
|
||||
|
||||
libinput_event_destroy(event);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue