Skip to content

Commit

Permalink
Follow up of 68d0500:
Browse files Browse the repository at this point in the history
Skip test if the server doesn't support session tracking
  • Loading branch information
9EOR9 committed Mar 2, 2019
1 parent 68d0500 commit 0cc2df4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions unittest/libmariadb/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1607,6 +1607,15 @@ static int test_conc392(MYSQL *mysql)
int rc;
const char *data;
size_t len;
ulong capabilities= 0;

mariadb_get_infov(mysql, MARIADB_CONNECTION_SERVER_CAPABILITIES, &capabilities);
if (!(capabilities & CLIENT_SESSION_TRACKING))
{
mysql_close(mysql);
diag("Server doesn't support session tracking (cap=%lu)", mysql->server_capabilities);
return SKIP;
}

rc= mysql_query(mysql, "set session_track_state_change=1");
check_mysql_rc(rc, mysql);
Expand Down

0 comments on commit 0cc2df4

Please sign in to comment.