Skip to content

Commit

Permalink
TestCmdlineParser: store messages in logger class instead of utilizin…
Browse files Browse the repository at this point in the history
…g the redirect (#5482)
  • Loading branch information
firewave committed Sep 26, 2023
1 parent 4ba19c4 commit 3774d46
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 186 deletions.
1 change: 1 addition & 0 deletions test/fixture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ bool TestFixture::prepareTest(const char testname[])
} else {
std::cout << classname << "::" << mTestname << std::endl;
}
teardownTestInternal();
return true;
}
return false;
Expand Down
1 change: 1 addition & 0 deletions test/fixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class TestFixture : public ErrorLogger {

bool prepareTest(const char testname[]);
virtual void prepareTestInternal() {}
virtual void teardownTestInternal() {}
std::string getLocationStr(const char * const filename, const unsigned int linenr) const;

bool assert_(const char * const filename, const unsigned int linenr, const bool condition) const;
Expand Down
Loading

0 comments on commit 3774d46

Please sign in to comment.