diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/client_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/client_test.c b/tests/client_test.c index 6ce33789aba..7c4859d6efe 100644 --- a/tests/client_test.c +++ b/tests/client_test.c @@ -7614,13 +7614,13 @@ static void test_logs() if (!opt_silent) { - fprintf(stdout, "\n id : %d", id); - fprintf(stdout, "\n name : %s(%ld)", data, length); + fprintf(stdout, "id : %d\n", id); + fprintf(stdout, "name : %s(%ld)\n", data, length); } DIE_UNLESS(id == 9876); - DIE_UNLESS(length == 19); /* Due to VARCHAR(20) */ - DIE_UNLESS(strcmp(data, "MySQL - Open Source") == 0); + DIE_UNLESS(length == 19 || length == 20); /* Due to VARCHAR(20) */ + DIE_UNLESS(is_prefix(data, "MySQL - Open Source") == 1); rc= mysql_stmt_fetch(stmt); check_execute(stmt, rc); |