diff --git a/dune/common/test/mpicollectivecommunication.cc b/dune/common/test/mpicollectivecommunication.cc
index 6d5b1f389faf1967e6f3a1e312c58dcb09e9e654..5c5d1271b8854e326291d380c0b7ae96306343f6 100644
--- a/dune/common/test/mpicollectivecommunication.cc
+++ b/dune/common/test/mpicollectivecommunication.cc
@@ -14,13 +14,11 @@
 int main(int argc, char** argv)
 {
   typedef Dune::MPIHelper Helper;
-  typedef Helper::MPICommunicator MPIComm;
+  Helper& mpi = Helper::instance(argc, argv);
 
 #if HAVE_MPI
   {
-    Helper& mpi = Helper::instance(argc, argv);
-
-
+    typedef Helper::MPICommunicator MPIComm;
     Dune::CollectiveCommunication<MPIComm> comm(mpi.getCommunicator());
 
     enum { length = 5 };
@@ -52,6 +50,7 @@ int main(int argc, char** argv)
   std::cout << "We are at the end!"<<std::endl;
 #else
   std::cout << "WARNING: test Dune::CollectiveCommunication<MPI_Comm> disabled because MPI not available! " << std::endl;
+  return 77;
 #endif
   return 0;
 }