Skip to content

Commit

Permalink
Test fix for MaxScale:
Browse files Browse the repository at this point in the history
Skip character set tests which set character set
during handshake, since MaxScale sends utf8mb4 via
session_track information in handshake OK packet.
(https://jira.mariadb.org/browse/MXS-4898).
  • Loading branch information
9EOR9 committed Dec 14, 2023
1 parent b0a2f65 commit 00fb206
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions unittest/libmariadb/charset.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ int bug_8378(MYSQL *mysql) {
MYSQL_RES *res;
MYSQL_ROW row;

/* MXS-4898: MaxScale sends utf8mb4 in handshake OK packet */
SKIP_MAXSCALE;

len= mysql_real_escape_string(mysql, out, TEST_BUG8378_IN, 4);
FAIL_IF(memcmp(out, TEST_BUG8378_OUT, len), "wrong result");

Expand Down
3 changes: 3 additions & 0 deletions unittest/libmariadb/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,9 @@ static int test_mdev13100(MYSQL *my __attribute__((unused)))
int rc;
FILE *fp;

/* MXS-4898: MaxScale sends utf8mb4 in handshake OK packet */
SKIP_MAXSCALE;

if (!(fp= fopen("./mdev13100.cnf", "w")))
return FAIL;

Expand Down

0 comments on commit 00fb206

Please sign in to comment.