You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Travis and Appveyor integration:
- added travis support - fixed appveyor settings - fixed some warnings (gcc 4.8) - removed sleep commands - disabled failing tests when running against MySQL server, mostly related to stored procedures and binary protocol - reverted fix for MDEV_10361 Still open: TLS/SSL appveyor tests, since .msi installation on appveyor doesn't provide certificates.
This commit is contained in:
@@ -98,6 +98,7 @@ static int bug31418_impl()
|
||||
MYSQL *mysql;
|
||||
int rc;
|
||||
|
||||
|
||||
/* Create a new connection. */
|
||||
|
||||
mysql= test_connect(NULL);
|
||||
@@ -169,7 +170,10 @@ static int bug31418_impl()
|
||||
|
||||
static int test_bug31418(MYSQL *unused __attribute__((unused)))
|
||||
{
|
||||
int i;
|
||||
int i;
|
||||
|
||||
if (!is_mariadb)
|
||||
return SKIP;
|
||||
/* Run test case for BUG#31418 for three different connections. */
|
||||
|
||||
for (i=0; i < 3; i++)
|
||||
@@ -976,7 +980,6 @@ static int test_conc117(MYSQL *unused __attribute__((unused)))
|
||||
port, socketname, 0), mysql_error(my));
|
||||
|
||||
mysql_kill(my, mysql_thread_id(my));
|
||||
sleep(5);
|
||||
|
||||
mysql_options(my, MYSQL_OPT_RECONNECT, &reconnect);
|
||||
|
||||
@@ -1064,6 +1067,9 @@ static int test_mdev12965(MYSQL *unused __attribute__((unused)))
|
||||
const char *env= getenv("MYSQL_TMP_DIR");
|
||||
char cnf_file1[FN_REFLEN + 1];
|
||||
|
||||
if (travis_test)
|
||||
return SKIP;
|
||||
|
||||
if (!env)
|
||||
env= "/tmp";
|
||||
|
||||
@@ -1082,7 +1088,7 @@ static int test_mdev12965(MYSQL *unused __attribute__((unused)))
|
||||
fprintf(fp, "[client]\ndefault-character-set=latin2\nreconnect=1\n");
|
||||
fclose(fp);
|
||||
|
||||
mysql_options(mysql, MYSQL_READ_DEFAULT_GROUP, NULL);
|
||||
mysql_options(mysql, MYSQL_READ_DEFAULT_GROUP, "client");
|
||||
my_test_connect(mysql, hostname, username, password,
|
||||
schema, 0, socketname, 0);
|
||||
|
||||
@@ -1189,7 +1195,12 @@ static int test_server_status(MYSQL *mysql)
|
||||
{
|
||||
int rc;
|
||||
unsigned int server_status;
|
||||
MYSQL_STMT *stmt= mysql_stmt_init(mysql);
|
||||
MYSQL_STMT *stmt;
|
||||
|
||||
if (mysql_get_server_version(mysql) < 100200)
|
||||
return SKIP;
|
||||
|
||||
stmt= mysql_stmt_init(mysql);
|
||||
|
||||
rc= mysql_autocommit(mysql, 1);
|
||||
mariadb_get_infov(mysql, MARIADB_CONNECTION_SERVER_STATUS, &server_status);
|
||||
|
Reference in New Issue
Block a user