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

More test fixes:

Always provide a message to the FAIL_ macros
This commit is contained in:
Georg Richter
2020-10-20 16:17:25 +02:00
parent dec58668dd
commit b24d337027
3 changed files with 10 additions and 7 deletions

View File

@@ -100,7 +100,7 @@ int bug_10214(MYSQL *mysql)
check_mysql_rc(rc, mysql);
len= mysql_real_escape_string(mysql, out, "a'b\\c", 5);
FAIL_IF(memcmp(out, "a\\'b\\\\c", len), NULL);
FAIL_IF(memcmp(out, "a\\'b\\\\c", len), "wrong result");
rc= mysql_query(mysql, "set sql_mode='NO_BACKSLASH_ESCAPES'");
check_mysql_rc(rc, mysql);