From 5b5776b148a430c13df9927615412f9f820dd044 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Sun, 13 Oct 2024 19:20:57 +1000 Subject: [PATCH] test: move the test devices into the test_device_section Better naming this way Part-of: --- test/litest.c | 4 ++-- test/litest.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/litest.c b/test/litest.c index 6a1a8135..5dcbc899 100644 --- a/test/litest.c +++ b/test/litest.c @@ -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); } diff --git a/test/litest.h b/test/litest.h index 9ac6ac44..8c457c0f 100644 --- a/test/litest.h +++ b/test/litest.h @@ -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 = { \