diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 48e304c9b736a0587cefc313ba0a3d4b35438232..50697564b0d47c4327776fa48d1702adf6dd9812 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -41,7 +41,7 @@ stages:
                 -DWITH_COVERAGE=${WITH_COVERAGE}
                 -DWITH_EXAMPLES=${WITH_EXAMPLES}
         - make
-        - make test
+        - make test CTEST_OUTPUT_ON_FAILURE=1
         - make install
         - popd
     variables:
diff --git a/build b/build
index 305a7e5d1ab69130e561afe16046e6329736c45e..328a3fe1f251aa3fa62f04ffa4b508a7b8f739ff 100755
--- a/build
+++ b/build
@@ -162,7 +162,7 @@ fi
 
 if test ${WITH_TESTS} = "yes";
 then
-    make test
+    make test CTEST_OUTPUT_ON_FAILURE=1
     if test $? != 0; then
         echo "Error: Some test did not pass successfuly."
     fi
diff --git a/src/UnitTests/SaveAndLoadMeshfunctionTest.cpp b/src/UnitTests/SaveAndLoadMeshfunctionTest.cpp
index d18f532aaeb95b683086b1e637f88b00bb739cb7..7f62d6df15b3daef7c67a59706b196f78c9af91b 100644
--- a/src/UnitTests/SaveAndLoadMeshfunctionTest.cpp
+++ b/src/UnitTests/SaveAndLoadMeshfunctionTest.cpp
@@ -13,6 +13,8 @@
 
 #include "Mpi/Functions.h"
 
+#include <iostream>
+
 using namespace TNL::Containers;
 using namespace TNL::Meshes;
 using namespace TNL::Functions;
@@ -58,7 +60,7 @@ class TestSaveAndLoadMeshfunction
             linearFunctionEvaluator.evaluateAllEntities(localMeshFunctionptr , linearFunctionPtr);
 
             File file;
-            file.open( String( "/tmp/test-file.tnl"), IOMode::write );        
+            file.open( String( "./test-file.tnl"), IOMode::write );        
             localMeshFunctionptr->save(file);        
             file.close();
 
@@ -76,7 +78,7 @@ class TestSaveAndLoadMeshfunction
                 loadDof[i]=-1;
             }
 
-            file.open( String( "/tmp/test-file.tnl" ), IOMode::read );
+            file.open( String( "./test-file.tnl" ), IOMode::read );
             loadMeshFunctionptr->boundLoad(file);
             file.close();