浏览代码

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

Nathalie Furmento 13 年之前
父节点
当前提交
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)
 {
 {