Sfoglia il codice sorgente

Skip tests/main/dependency_on_destroyed_task when running on valgrind.

This test has to make StarPU fail by doing crazy things with memory.
Cyril Roelandt 13 anni fa
parent
commit
2a80b72ae3
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      tests/main/dependency_on_destroyed_task.c

+ 8 - 0
tests/main/dependency_on_destroyed_task.c

@@ -12,6 +12,13 @@
  * probably OK to disable it for a while :-) Maybe we could also detect
  * destroyed tasks in starpu_task_declare_deps_array.
  */
+#ifdef STARPU_HAVE_VALGRIND_H
+int
+main(void)
+{
+	return STARPU_TEST_SKIPPED;
+}
+#else
 static void abort_catcher(int sig)
 {
 	(void) sig;
@@ -76,4 +83,5 @@ main(void)
 
 	return EXIT_FAILURE;
 }
+#endif