Переглянути джерело

Make this build on systems with no filesystem or process APIs

svn path=/trunk/mono/; revision=149931
Miguel de Icaza 16 роки тому
батько
коміт
385fa668d4
2 змінених файлів з 14 додано та 2 видалено
  1. 8 0
      eglib/test/path.c
  2. 6 2
      eglib/test/tests.h

+ 8 - 0
eglib/test/path.c

@@ -264,6 +264,7 @@ test_ppath2 ()
 	return OK;
 }
 
+#ifdef DISABLE_FILESYSTEM_TESTS
 gchar *
 test_cwd ()
 {
@@ -288,6 +289,13 @@ test_cwd ()
 	
 	return OK;
 }
+#else
+gchar *
+test_cwd ()
+{
+	return OK;
+}
+#endif
 
 gchar *
 test_misc ()

+ 6 - 2
eglib/test/tests.h

@@ -38,15 +38,19 @@ static Group test_groups [] = {
 	{"path",      path_tests_init},
 	{"shell",     shell_tests_init},
 	{"markup",    markup_tests_init},
+#if !DISABLE_PROCESS_TESTS 
 	{"spawn",     spawn_tests_init},
-	{"timer",     timer_tests_init},
+	{"module",    module_tests_init},
+#endif
+#if !DISABLE_FILESYSTEM_TESTS
 	{"file",      file_tests_init},
+#endif
+	{"timer",     timer_tests_init},
 	{"pattern",   pattern_tests_init},
 	{"dir",       dir_tests_init},
 	{"unicode",   unicode_tests_init},
 	{"utf8",      utf8_tests_init},
 	{"endian",    endian_tests_init},
-	{"module",    module_tests_init},
 	{"memory",    memory_tests_init},
 	{NULL, NULL}
 };