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:
Markus Mäkelä 2018-08-07 11:42:17 +03:00
parent 055043b5b8
commit 7394f03cd9
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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)