Преглед на файлове

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

Nathalie Furmento преди 11 години
родител
ревизия
3ddddd7e09
променени са 1 файла, в които са добавени 9 реда и са изтрити 0 реда
  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();