test: move the test devices into the test_device_section
authorPeter Hutterer <peter.hutterer@who-t.net>
Sun, 13 Oct 2024 09:20:57 +0000 (19:20 +1000)
committerMarge Bot <emma+marge@anholt.net>
Mon, 14 Oct 2024 08:56:07 +0000 (08:56 +0000)
Better naming this way

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1060>

test/litest.c
test/litest.h

index 6a1a81354ea89bd18be5cf151aa67f170f160182..5dcbc8999dff0f983c589fdadbfb02d3af93cfbb 100644 (file)
@@ -4835,7 +4835,7 @@ litest_list_tests(struct list *tests)
        }
 }
 
-extern const struct test_device __start_test_section, __stop_test_section;
+extern const struct test_device __start_test_device_section, __stop_test_device_section;
 
 static void
 litest_init_test_devices(void)
@@ -4844,7 +4844,7 @@ litest_init_test_devices(void)
 
        list_init(&devices);
 
-       for (t = &__start_test_section; t < &__stop_test_section; t++)
+       for (t = &__start_test_device_section; t < &__stop_test_device_section; t++)
                list_append(&devices, &t->device->node);
 }
 
index 9ac6ac449c3d33d026107e05b93c619d9bc15fd2..8c457c0f6b425d83b393d91eac353c2da9e4d8c8 100644 (file)
@@ -60,7 +60,7 @@ struct test_device {
        \
        static const struct test_device _test_device \
                __attribute__ ((used)) \
-               __attribute__ ((section ("test_section"))) = { \
+               __attribute__ ((section ("test_device_section"))) = { \
                name, &_device \
        }; \
        static struct litest_test_device _device = { \