[PATCH libevdev 2/7] test: drop some superfluous dev creation

Peter Hutterer peter.hutterer at who-t.net
Sun Jul 28 21:06:32 PDT 2013


copy/paste residue, had no effect

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/test-libevdev-has-event.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/test/test-libevdev-has-event.c b/test/test-libevdev-has-event.c
index c2c1a2b..963952f 100644
--- a/test/test-libevdev-has-event.c
+++ b/test/test-libevdev-has-event.c
@@ -325,15 +325,7 @@ START_TEST(test_no_slots)
 {
 	struct uinput_device* uidev;
 	struct libevdev *dev;
-	const char *str;
 	int rc;
-
-	dev = libevdev_new();
-
-	str = libevdev_get_name(dev);
-	ck_assert(str != NULL);
-	ck_assert_int_eq(strlen(str), 0);
-
 	rc = test_create_device(&uidev, &dev,
 				EV_ABS, ABS_X,
 				EV_ABS, ABS_Y,
@@ -354,15 +346,8 @@ START_TEST(test_slot_number)
 {
 	struct uinput_device* uidev;
 	struct libevdev *dev;
-	const char *str;
 	int rc;
 
-	dev = libevdev_new();
-
-	str = libevdev_get_name(dev);
-	ck_assert(str != NULL);
-	ck_assert_int_eq(strlen(str), 0);
-
 	rc = test_create_device(&uidev, &dev,
 				EV_ABS, ABS_X,
 				EV_ABS, ABS_Y,
-- 
1.8.2.1



More information about the Input-tools mailing list