Browse Source

disable test on non-mmu host

Mike Frysinger 18 years ago
parent
commit
b4d37f3240
1 changed files with 12 additions and 0 deletions
  1. 12 0
      test/unistd/fork.c

+ 12 - 0
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"