summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/unistd/fork.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unistd/fork.c b/test/unistd/fork.c
index da4f2688d..20bbc5cff 100644
--- a/test/unistd/fork.c
+++ b/test/unistd/fork.c
@@ -32,6 +32,8 @@
#define GOT2 (1 << 2)
#define GOT3 (1 << 3)
+#ifdef __ARCH_HAS_MMU__
+
void child_handler(int sig)
{
fprintf(stderr, "I got a SIGCHLD\n");
@@ -86,6 +88,16 @@ int main(void)
return EXIT_SUCCESS;
}
+#else
+
+int main(void)
+{
+ printf("Skipping test on non-mmu host!\n");
+ return EXIT_SUCCESS;
+}
+
+#endif
+
/*
Local Variables:
c-file-style: "linux"