Exit with failure if coredump is found in destructor
If the test would otherwise succeed but a coredump is found when the logs are copied in the destructor, the test would pass. To prevent this, the destructor should always exit with a non-zero status when it detects an error.
This commit is contained in:
parent
055043b5b8
commit
7394f03cd9
@ -363,6 +363,12 @@ TestConnections::~TestConnections()
|
||||
{
|
||||
delete galera;
|
||||
}
|
||||
|
||||
if (global_result)
|
||||
{
|
||||
// This causes the test to fail if a core dump is found
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
void TestConnections::report_result(const char *format, va_list argp)
|
||||
|
Loading…
x
Reference in New Issue
Block a user