Explorar o código

Reduce maximum allowed time for tests, to avoid waiting for half an hour for hung tests

Samuel Thibault %!s(int64=9) %!d(string=hai) anos
pai
achega
d89033f224
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      tests/loader.c

+ 9 - 0
tests/loader.c

@@ -32,7 +32,16 @@
 #include <sys/time.h>
 #endif
 
+#ifdef STARPU_QUICK_CHECK
+/* Quick checks are supposed to be real quick, typically less than 1s each, sometimes 10s */
+#define  DEFAULT_TIMEOUT       30
+#elif !defined(STARPU_LONG_CHECK
+/* Normal checks are supposed to be short enough, typically less than 10s each, sometimes 1-2m */
+#define  DEFAULT_TIMEOUT       300
+#else
+/* Long checks can be very long */
 #define  DEFAULT_TIMEOUT       1800
+#endif
 #define  AUTOTEST_SKIPPED_TEST 77
 
 static pid_t child_pid = 0;