Bläddra i källkod

Fix return value in valgrind case

Samuel Thibault 13 år sedan
förälder
incheckning
57ec4fcd64

+ 2 - 2
tests/datawizard/increment_redux_lazy.c

@@ -243,7 +243,7 @@ int main(int argc, char **argv)
 
 	starpu_shutdown();
 
-	return EXIT_SUCCESS;
+	STARPU_RETURN(EXIT_SUCCESS);
 
 enodev:
 	starpu_data_unregister(handle);
@@ -251,5 +251,5 @@ enodev:
 	/* yes, we do not perform the computation but we did detect that no one
  	 * could perform the kernel, so this is not an error from StarPU */
 	starpu_shutdown();
-	return STARPU_TEST_SKIPPED;
+	STARPU_RETURN(STARPU_TEST_SKIPPED);
 }

+ 4 - 4
tests/datawizard/sync_and_notify_data.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010  Université de Bordeaux 1
+ * Copyright (C) 2010, 2012  Université de Bordeaux 1
  * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  * Copyright (C) 2012 inria
  *
@@ -208,10 +208,10 @@ int main(int argc, char **argv)
 	if ((v[0] != n*k) || (v[1] != k) || (v[2] != n*k))
 	{
 		FPRINTF(stderr, "Incorrect result\n");
-		return EXIT_FAILURE;
+		STARPU_RETURN(EXIT_FAILURE);
 	}
 
-	return EXIT_SUCCESS;
+	STARPU_RETURN(EXIT_SUCCESS);
 
 enodev:
 	starpu_data_unregister(v_handle);
@@ -219,5 +219,5 @@ enodev:
 	fprintf(stderr, "WARNING: No one can execute this task\n");
 	/* yes, we do not perform the computation but we did detect that no one
  	 * could perform the kernel, so this is not an error from StarPU */
-	return STARPU_TEST_SKIPPED;
+	STARPU_RETURN(STARPU_TEST_SKIPPED);
 }

+ 2 - 2
tests/helper/starpu_data_cpy.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010  Université de Bordeaux 1
+ * Copyright (C) 2010, 2012  Université de Bordeaux 1
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -45,5 +45,5 @@ int main(int argc, char **argv)
 	starpu_data_unregister(var2_handle);
 	starpu_shutdown();
 
-	return EXIT_SUCCESS;
+	STARPU_RETURN(EXIT_SUCCESS);
 }

+ 2 - 2
tests/overlap/overlap.c

@@ -131,7 +131,7 @@ int main(int argc, char **argv)
 	starpu_free(buffer);
 	starpu_shutdown();
 
-	return EXIT_SUCCESS;
+	STARPU_RETURN(EXIT_SUCCESS);
 
 enodev:
 	starpu_data_unregister(handle);
@@ -140,5 +140,5 @@ enodev:
 	/* yes, we do not perform the computation but we did detect that no one
  	 * could perform the kernel, so this is not an error from StarPU */
 	starpu_shutdown();
-	return STARPU_TEST_SKIPPED;
+	STARPU_RETURN(STARPU_TEST_SKIPPED);
 }

+ 3 - 3
tests/parallel_tasks/parallel_kernels.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010  Université de Bordeaux 1
+ * Copyright (C) 2010, 2012  Université de Bordeaux 1
  * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -110,7 +110,7 @@ int main(int argc, char **argv)
 	starpu_free(v);
 	starpu_shutdown();
 
-	return EXIT_SUCCESS;
+	STARPU_RETURN(EXIT_SUCCESS);
 
 enodev:
 	starpu_data_unregister(v_handle);
@@ -119,5 +119,5 @@ enodev:
 	/* yes, we do not perform the computation but we did detect that no one
  	 * could perform the kernel, so this is not an error from StarPU */
 	starpu_shutdown();
-	return STARPU_TEST_SKIPPED;
+	STARPU_RETURN(STARPU_TEST_SKIPPED);
 }

+ 3 - 3
tests/parallel_tasks/parallel_kernels_spmd.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010  Université de Bordeaux 1
+ * Copyright (C) 2010, 2012  Université de Bordeaux 1
  * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -111,7 +111,7 @@ int main(int argc, char **argv)
 	starpu_data_unregister(v_handle);
 	starpu_free(v);
 	starpu_shutdown();
-	return EXIT_SUCCESS;
+	STARPU_RETURN(EXIT_SUCCESS);
 
 enodev:
 	starpu_data_unregister(v_handle);
@@ -120,5 +120,5 @@ enodev:
 	/* yes, we do not perform the computation but we did detect that no one
  	 * could perform the kernel, so this is not an error from StarPU */
 	starpu_shutdown();
-	return STARPU_TEST_SKIPPED;
+	STARPU_RETURN(STARPU_TEST_SKIPPED);
 }