Browse Source

tests/main/starpu_worker_exists.c: display message on failure

Nathalie Furmento 11 years ago
parent
commit
3ddddd7e09
1 changed files with 9 additions and 0 deletions
  1. 9 0
      tests/main/starpu_worker_exists.c

+ 9 - 0
tests/main/starpu_worker_exists.c

@@ -72,17 +72,26 @@ main(int argc, char **argv)
 	cl.can_execute = NULL;
 	ret = _starpu_worker_exists(task);
 	if (!ret)
+	{
+		FPRINTF(stderr, "failure with can_execute=NULL\n");
 		return EXIT_FAILURE;
+	}
 
 	cl.can_execute = can_always_execute;
 	ret = _starpu_worker_exists(task);
 	if (!ret)
+	{
+		FPRINTF(stderr, "failure with can_always_execute\n");
 		return EXIT_FAILURE;
+	}
 
 	cl.can_execute = can_never_execute;
 	ret = _starpu_worker_exists(task);
 	if (ret)
+	{
+		FPRINTF(stderr, "failure with can_never_execute\n");
 		return EXIT_FAILURE;
+	}
 
 	starpu_task_destroy(task);
 	starpu_shutdown();