diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-02-16 05:38:50 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-02-16 05:38:50 +0000 |
commit | b4d37f32407bdfcf388bfd6a9d131f8d2b418f37 (patch) | |
tree | 2383594e4cd179c90fa0f62120011f6074402ed3 /test | |
parent | 9a84c1eae1c66c6d423a988e814937401bd3e1b1 (diff) |
disable test on non-mmu host
Diffstat (limited to 'test')
-rw-r--r-- | test/unistd/fork.c | 12 |
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" |