ソースを参照

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

Nathalie Furmento 14 年 前
コミット
49bc26ac5f
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      tests/core/starpu_init.c

+ 1 - 1
tests/core/starpu_init.c

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