TestCmdlineParser: store messages in logger class instead of utilizing the redirect (#5482)

This commit is contained in:
Oliver Stöneberg 2023-09-26 21:38:15 +02:00 committed by GitHub
parent 4ba19c42ba
commit 3774d46303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 219 additions and 186 deletions

View File

@ -104,6 +104,7 @@ bool TestFixture::prepareTest(const char testname[])
} else {
std::cout << classname << "::" << mTestname << std::endl;
}
teardownTestInternal();
return true;
}
return false;

View File

@ -61,6 +61,7 @@ protected:
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;

File diff suppressed because it is too large Load Diff