diff --git a/tests/mpi_test_main.cpp b/tests/mpi_test_main.cpp
index b6f2a172aa28460bfe81f8d15f8925a73b467d06..ecf49bbe4662ae30ac4b99af694aad4ecfe6a1de 100644
--- a/tests/mpi_test_main.cpp
+++ b/tests/mpi_test_main.cpp
@@ -4,11 +4,19 @@
 #include <Kokkos_Core.hpp>
 #include <Messenger.hpp>
 
+#include <cstdlib>
+
 int main( int argc, char* argv[] )
 {
+  setenv("GCOV_PREFIX", "/dev/null", 1);
+
   Messenger::create(argc,  argv);
   Kokkos::initialize({4,-1,-1,true});
 
+  if (commRank() == 0) {
+    unsetenv("GCOV_PREFIX");
+  }
+
   int result = Catch::Session().run( argc, argv );
 
   Kokkos::finalize();