Explorar o código

tests/datawizard/mpi_like_async.c: on error, return EXIT_FAILURE instead of aborting

Nathalie Furmento %!s(int64=13) %!d(string=hai) anos
pai
achega
d98f0cdb45
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      tests/datawizard/mpi_like_async.c

+ 3 - 2
tests/datawizard/mpi_like_async.c

@@ -359,10 +359,11 @@ int main(int argc, char **argv)
 	/* We check that the value in the "last" thread is valid */
 	starpu_data_handle_t last_handle = problem_data[nthreads - 1].handle;
 	starpu_data_acquire(last_handle, STARPU_R);
+	ret = EXIT_SUCCESS;
 	if (problem_data[nthreads - 1].val != (nthreads * niter))
 	{
 		FPRINTF(stderr, "Final value : %u should be %d\n", problem_data[nthreads - 1].val, (nthreads * niter));
-		STARPU_ABORT();
+		ret = EXIT_FAILURE;
 	}
 	starpu_data_release(last_handle);
 
@@ -373,5 +374,5 @@ int main(int argc, char **argv)
 
 	starpu_shutdown();
 
-	return EXIT_SUCCESS;
+	STARPU_RETURN(ret);
 }