Browse Source

disable test on non-mmu host

Mike Frysinger 18 năm trước cách đây
mục cha
commit
b4d37f3240
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  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"