mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 16:20:29 +01:00
test: add a note to one of the device tests
If we get two different sysnames for the device, this test doesn't test anything much, so it's better to fail here. But add a comment so that when it fails it's quite obvious why. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
d05363316c
commit
120a5b3384
1 changed files with 3 additions and 0 deletions
|
|
@ -313,6 +313,9 @@ START_TEST(device_reenable_syspath_changed)
|
|||
|
||||
litest_device = litest_add_device(li, LITEST_MOUSE);
|
||||
device2 = litest_device->libinput_device;
|
||||
/* Note: if the sysname isn't the same, some other device got added
|
||||
* or removed while this test was running. This is unlikely and
|
||||
* would result in a false positive, so let's fail the test here */
|
||||
ck_assert_str_eq(libinput_device_get_sysname(device1),
|
||||
libinput_device_get_sysname(device2));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue