mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-03 01:41:30 -05:00
tests: Specify the test section as __RODATA on darwin
Addresses build failures on darwin such as:
tests/os-wrappers-test.c:413:1: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma
TEST(os_wrappers_epoll_create_cloexec_fallback)
^
../tests/test-runner.h:44:35: note: expanded from macro 'TEST'
__attribute__ ((used, section ("test_section"))) = { \
^
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
a8a1d3d1cf
commit
276a28afd1
2 changed files with 13 additions and 2 deletions
|
|
@ -63,7 +63,12 @@ static int timeouts_enabled = 1;
|
|||
/* set to one if the output goes to the terminal */
|
||||
static int is_atty = 0;
|
||||
|
||||
#ifdef __APPLE__
|
||||
extern const struct test __start_test_section __asm("section$start$__RODATA$test_section");
|
||||
extern const struct test __stop_test_section __asm("section$end$__RODATA$test_section");
|
||||
#else
|
||||
extern const struct test __start_test_section, __stop_test_section;
|
||||
#endif
|
||||
|
||||
static const struct test *
|
||||
find_test(const char *name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue