Move sync_with_stdio into TestConnections constructor

This way all tests run with the same configuration.
This commit is contained in:
Markus Mäkelä
2018-11-15 10:57:52 +02:00
parent 29d96662eb
commit 396da06eb8
6 changed files with 1 additions and 10 deletions

View File

@ -197,8 +197,6 @@ void run(TestConnections& test)
int main(int argc, char* argv[])
{
std::ios::sync_with_stdio(true);
TestConnections test(argc, argv);
if (test.maxscales->connect_rwsplit() == 0)

View File

@ -178,8 +178,6 @@ void run(TestConnections& test)
int main(int argc, char* argv[])
{
std::ios::sync_with_stdio(true);
TestConnections test(argc, argv);
if (test.maxscales->connect_rwsplit() == 0)

View File

@ -572,8 +572,6 @@ void run(TestConnections& test)
int main(int argc, char* argv[])
{
std::ios::sync_with_stdio(true);
Mariadb_nodes::require_gtid(true);
TestConnections test(argc, argv);

View File

@ -172,8 +172,6 @@ void run(TestConnections& test)
int main(int argc, char* argv[])
{
std::ios::sync_with_stdio(true);
Mariadb_nodes::require_gtid(true);
TestConnections test(argc, argv);

View File

@ -636,8 +636,6 @@ void run(TestConnections& test)
int main(int argc, char* argv[])
{
std::ios::sync_with_stdio(true);
Mariadb_nodes::require_gtid(true);
TestConnections test(argc, argv);

View File

@ -107,6 +107,7 @@ TestConnections::TestConnections(int argc, char* argv[])
, threads(4)
, use_ipv6(false)
{
std::ios::sync_with_stdio(true);
signal_set(SIGSEGV, sigfatal_handler);
signal_set(SIGABRT, sigfatal_handler);
signal_set(SIGFPE, sigfatal_handler);