From 8a665f0d57a355932e9571449f4cf30caed56ae1 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 10 Mar 2024 19:08:03 +0100 Subject: [PATCH] Skip test when building with a uclibc that does not implement fork --- utest/test_post_fork.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utest/test_post_fork.c b/utest/test_post_fork.c index 9370a02ce..6d640aebb 100644 --- a/utest/test_post_fork.c +++ b/utest/test_post_fork.c @@ -67,6 +67,11 @@ static void check_dgemm(double *a, double *b, double *result, double *expected, CTEST(fork, safety_after_fork_in_parent) { +#ifdef __UCLIBC__ +#if !defined __UCLIBC_HAS_STUBS__ && !defined __ARCH_USE_MMU__ +exit(0); +#endif +#endif #ifndef BUILD_DOUBLE exit(0); #else