From b08a3c70e5bfc35b063cd7c6c0514d87558e4973 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 9 May 2017 13:39:46 +1000 Subject: [PATCH] test: remove test for ULONG_MAX queue allocation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Benjamin Tissoires --- test/test-int-queue.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/test-int-queue.c b/test/test-int-queue.c index 501dc08..c23f96f 100644 --- a/test/test-int-queue.c +++ b/test/test-int-queue.c @@ -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);