Skip to content
Snippets Groups Projects
Commit 2128d567 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Disable std::cout to prevent polluting of test reports

parent c97fc5d7
No related branches found
No related tags found
1 merge request!37Feature/language
...@@ -12,6 +12,9 @@ main(int argc, char* argv[]) ...@@ -12,6 +12,9 @@ main(int argc, char* argv[])
parallel::Messenger::create(argc, argv); parallel::Messenger::create(argc, argv);
Kokkos::initialize({4, -1, -1, true}); Kokkos::initialize({4, -1, -1, true});
// Disable outputs from tested classes to the standard output
std::cout.setstate(std::ios::badbit);
if (parallel::rank() != 0) { if (parallel::rank() != 0) {
setenv("GCOV_PREFIX", "/dev/null", 1); setenv("GCOV_PREFIX", "/dev/null", 1);
} }
......
...@@ -8,6 +8,9 @@ main(int argc, char* argv[]) ...@@ -8,6 +8,9 @@ main(int argc, char* argv[])
{ {
Kokkos::initialize({4, -1, -1, true}); Kokkos::initialize({4, -1, -1, true});
// Disable outputs from tested classes to the standard output
std::cout.setstate(std::ios::badbit);
int result = Catch::Session().run(argc, argv); int result = Catch::Session().run(argc, argv);
Kokkos::finalize(); Kokkos::finalize();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment