瀏覽代碼

disable test on non-mmu host

Mike Frysinger 18 年之前
父節點
當前提交
b4d37f3240
共有 1 個文件被更改,包括 12 次插入0 次删除
  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"