Skip to content

Commit

Permalink
unit test informational logging interferes with catch_discover_tests,…
Browse files Browse the repository at this point in the history
… only produce if Catch's `verbosity` != `quiet`
  • Loading branch information
evaleev committed Feb 24, 2024
1 parent fcbd2e8 commit 9cd39b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/unit_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ int main(int argc, char** argv) {
ttg::diagnose_off(); // turn off diagnostics

const auto nranks = ttg::default_execution_context().size();
std::cout << "ready to run TTG unit tests with " << nranks << " rank" << (nranks > 1 ? "s" : "") << std::endl;
if (session.config().verbosity() != Catch::Verbosity::Quiet)
std::cout << "ready to run TTG unit tests with " << nranks << " rank" << (nranks > 1 ? "s" : "") << std::endl;

ttg::execute();
#endif
Expand Down

0 comments on commit 9cd39b8

Please sign in to comment.