mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-25 09:20:08 +01:00
test: remove test for ULONG_MAX queue allocation
Fixes the warning: ../libevdev/libevdev-int.h:231:15: warning: argument 1 value ‘18446744073709551615’ exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=] That's now part of gcc's -Wall, so let's rely on that for code. Arguably, the queue code is simple enough that we don't need a test for ENOMEM anyway. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
parent
7295576980
commit
b08a3c70e5
1 changed files with 0 additions and 3 deletions
|
|
@ -33,9 +33,6 @@ START_TEST(test_queue_alloc)
|
|||
rc = queue_alloc(&dev, 0);
|
||||
ck_assert_int_eq(rc, -ENOMEM);
|
||||
|
||||
rc = queue_alloc(&dev, ULONG_MAX);
|
||||
ck_assert_int_eq(rc, -ENOMEM);
|
||||
|
||||
rc = queue_alloc(&dev, 100);
|
||||
ck_assert_int_eq(rc, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue