1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Smaller test case fixes

This commit is contained in:
Georg Richter
2017-03-23 16:53:00 +01:00
parent 63e0897d43
commit 082b165c6d
3 changed files with 30 additions and 8 deletions

View File

@@ -988,7 +988,7 @@ static int test_sess_track_db(MYSQL *mysql)
return OK;
}
#ifndef WIN32
static int test_unix_socket_close(MYSQL *unused __attribute__((unused)))
{
MYSQL *mysql= mysql_init(NULL);
@@ -1016,6 +1016,7 @@ static int test_unix_socket_close(MYSQL *unused __attribute__((unused)))
mysql_close(mysql);
return OK;
}
#endif
static int test_reset(MYSQL *mysql)
{
@@ -1092,7 +1093,9 @@ static int test_mdev12446(MYSQL *my __attribute__((unused)))
struct my_tests_st my_tests[] = {
{"test_mdev12446", test_mdev12446, TEST_CONNECTION_DEFAULT, 0, NULL, NULL},
{"test_reset", test_reset, TEST_CONNECTION_DEFAULT, 0, NULL, NULL},
#ifndef WIN32
{"test_unix_socket_close", test_unix_socket_close, TEST_CONNECTION_NONE, 0, NULL, NULL},
#endif
{"test_sess_track_db", test_sess_track_db, TEST_CONNECTION_DEFAULT, 0, NULL, NULL},
{"test_get_options", test_get_options, TEST_CONNECTION_DEFAULT, 0, NULL, NULL},
{"test_wrong_bind_address", test_wrong_bind_address, TEST_CONNECTION_DEFAULT, 0, NULL, NULL},