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

Merge branch 'develop' into feature/language

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