diff --git a/test/Makefile b/test/Makefile
index 589bc4a3682344def4d8bbc3d3f234e4218edc20..2993b098fd36c233b1404cc9137faf5453694404 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -51,7 +51,7 @@ test_cpp:
     && conan install ../.. -s "compiler.libcxx=libstdc++11"      \
     && cmake -D TEST=On ../..                                    \
     && make test_detailed                                        \
-    || echo "Test(s) failed."; exit 1
+    || (echo "Test(s) failed."; exit 1)
 #   Exit with error if tests fail.
 #    && make test || make test_detailed || echo "Test(s) failed." ; exit 1