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-flock2.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/nptl/tst-flock2.c') diff --git a/test/nptl/tst-flock2.c b/test/nptl/tst-flock2.c index acc6972..dac6c2c 100644 --- a/test/nptl/tst-flock2.c +++ b/test/nptl/tst-flock2.c @@ -27,6 +27,8 @@ #include #include "../test-skeleton.h" +#ifdef __ARCH_USE_MMU__ + static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t lock2 = PTHREAD_MUTEX_INITIALIZER; static int fd; @@ -258,3 +260,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