Fix test failures

Added timeouts to maxinfo_sql and mysqlmon_failover_stress, fixed
fwf_syntax to work with out-of-source test runs.
This commit is contained in:
Markus Mäkelä
2018-07-30 11:43:59 +03:00
parent ad5762a2fb
commit 28e55b260f
3 changed files with 14 additions and 1 deletions

View File

@ -61,20 +61,27 @@ int main(int argc, char** argv)
for (int i = 0; i < 100; i++)
{
test.set_timeout(60);
for (auto a : commands)
{
test.try_query(conn, "%s", a.c_str());
}
}
test.stop_timeout();
mysql_close(conn);
run = false;
test.set_timeout(60);
for (auto& a : threads)
{
a.join();
}
test.stop_timeout();
return test.global_result;
}