Browse Source

tests/core/starpu_init.c: skip test when CPU are disabled

Nathalie Furmento 13 years ago
parent
commit
49bc26ac5f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/core/starpu_init.c

+ 1 - 1
tests/core/starpu_init.c

@@ -18,7 +18,7 @@
 #include "../helper.h"
 #include <stdlib.h>
 
-#if !defined(STARPU_HAVE_UNSETENV)
+#if !defined(STARPU_HAVE_UNSETENV) || !defined(STARPU_USE_CPU)
 #warning unsetenv is not defined. Skipping test
 int main(int argc, char **argv)
 {