summaryrefslogtreecommitdiff
path: root/test/unistd/fork.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-16 05:38:50 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-16 05:38:50 +0000
commitb4d37f32407bdfcf388bfd6a9d131f8d2b418f37 (patch)
tree2383594e4cd179c90fa0f62120011f6074402ed3 /test/unistd/fork.c
parent9a84c1eae1c66c6d423a988e814937401bd3e1b1 (diff)
disable test on non-mmu host
Diffstat (limited to 'test/unistd/fork.c')
-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"