Move sync_with_stdio into TestConnections constructor
This way all tests run with the same configuration.
This commit is contained in:
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user