TestCmdlineParser: properly reset settings and parser between tests (#5310)
This commit is contained in:
parent
0901ba9a7e
commit
2b3dec4418
|
@ -91,6 +91,8 @@ bool TestFixture::prepareTest(const char testname[])
|
|||
mTemplateFormat.clear();
|
||||
mTemplateLocation.clear();
|
||||
|
||||
prepareTestInternal();
|
||||
|
||||
// Check if tests should be executed
|
||||
if (testToRun.empty() || testToRun == testname) {
|
||||
// Tests will be executed - prepare them
|
||||
|
|
|
@ -60,6 +60,7 @@ protected:
|
|||
virtual void run() = 0;
|
||||
|
||||
bool prepareTest(const char testname[]);
|
||||
virtual void prepareTestInternal() {}
|
||||
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
Loading…
Reference in New Issue