From 38448563027435caea09372e7aac4cac4d92b1c0 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 6 May 2015 10:49:17 +1000 Subject: [PATCH] test: move a comment to where it belongs Signed-off-by: Peter Hutterer --- test/litest.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/litest.c b/test/litest.c index 91f2747..d3b5d6c 100644 --- a/test/litest.c +++ b/test/litest.c @@ -1246,11 +1246,6 @@ litest_create_uinput_device_from_description(const char *name, libevdev_free(dev); - /* uinput does not yet support setting the resolution, so we set it - * afterwards. This is of course racy as hell but the way we - * _generally_ use this function by the time libinput uses the - * device, we're finished here */ - devnode = libevdev_uinput_get_devnode(uinput); ck_assert_notnull(devnode); fd = open(devnode, O_RDONLY); @@ -1258,6 +1253,10 @@ litest_create_uinput_device_from_description(const char *name, rc = libevdev_new_from_fd(fd, &dev); ck_assert_int_eq(rc, 0); + /* uinput does not yet support setting the resolution, so we set it + * afterwards. This is of course racy as hell but the way we + * _generally_ use this function by the time libinput uses the + * device, we're finished here */ abs = abs_info; while (abs && abs->value != -1) { if (abs->resolution != 0) { -- 2.7.4