Browse Source

tests/core/restart: skip the test when no processing unit can be used.

Cyril Roelandt 13 years ago
parent
commit
c7e6908404
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/core/restart.c

+ 4 - 0
tests/core/restart.c

@@ -31,6 +31,7 @@ struct timeval end;
 
 int main(int argc, char **argv)
 {
+#if defined(STARPU_USE_CPU) || defined(STARPU_USE_CUDA) || defined(STARPU_USE_OPENCL)
 	unsigned iter;
 
 	double init_timing = 0.0;
@@ -57,4 +58,7 @@ int main(int argc, char **argv)
 	FPRINTF(stderr, "starpu_shutdown: %2.2f seconds\n", shutdown_timing/(N*1000000));
 
 	return EXIT_SUCCESS;
+#else
+	return STARPU_TEST_SKIPPED;
+#endif
 }