Explorar el Código

exit rather than assert on test failure

Samuel Thibault hace 13 años
padre
commit
dd04246af3
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      examples/tag_example/tag_example4.c

+ 2 - 1
examples/tag_example/tag_example4.c

@@ -44,7 +44,8 @@ void cpu_codelet_A(void *descr[], void *_args)
 void cpu_codelet_B(void *descr[], void *_args)
 {
 	int *arg = _args;
-	STARPU_ASSERT(*arg == 1);
+	if (*arg != 1)
+		exit(EXIT_FAILURE);
 	fprintf(stderr,"B");
 }