Explorar o código

mpi/tests: skip exchange of void values when running on valgrind

Nathalie Furmento %!s(int64=9) %!d(string=hai) anos
pai
achega
1b6a8c630b
Modificáronse 2 ficheiros con 8 adicións e 2 borrados
  1. 4 1
      mpi/tests/mpi_earlyrecv2.c
  2. 4 1
      mpi/tests/mpi_earlyrecv2_sync.c

+ 4 - 1
mpi/tests/mpi_earlyrecv2.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010, 2014-2015  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2015  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016  CNRS
  *
  * 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
@@ -149,6 +149,9 @@ int exchange_void(int rank, int detached)
 	int ret, i;
 	starpu_data_handle_t tab_handle[NB];
 
+	// This test is not run with valgrind as valgrind falsely detects error when exchanging NULL pointers
+	STARPU_SKIP_IF_VALGRIND_RETURN_0;
+
 	FPRINTF_MPI(stderr, "Exchanging void data with detached=%d\n", detached);
 
 	for(i=0 ; i<NB ; i++)

+ 4 - 1
mpi/tests/mpi_earlyrecv2_sync.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009, 2010  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016  CNRS
  *
  * 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
@@ -134,6 +134,9 @@ int exchange_void(int rank)
 	int ret, i;
 	starpu_data_handle_t tab_handle[NB];
 
+	// This test is not run with valgrind as valgrind falsely detects error when exchanging NULL pointers
+	STARPU_SKIP_IF_VALGRIND_RETURN_0;
+
 	ret = starpu_init(NULL);
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
 	ret = starpu_mpi_init(NULL, NULL, 0);