From a7c8210e2491cdc0893869172b84ba3801ec3d6c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 4 May 2024 17:16:12 +0200 Subject: nptl: fork() is not available for noMMU, skip tests --- test/nptl/tst-sem4.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/nptl/tst-sem4.c') diff --git a/test/nptl/tst-sem4.c b/test/nptl/tst-sem4.c index 4293b2c..1ef1428 100644 --- a/test/nptl/tst-sem4.c +++ b/test/nptl/tst-sem4.c @@ -24,6 +24,8 @@ #include #include "../test-skeleton.h" +#ifdef __ARCH_USE_MMU__ + static void remove_sem (int status, void *arg) { @@ -151,3 +153,13 @@ do_test (void) #define TEST_FUNCTION do_test () #include "../test-skeleton.c" + +#else + +int main(void) +{ + printf("Skipping test on non-mmu host!\n"); + return 23; +} + +#endif -- cgit v1.2.3