diff options
author | iggy@rolltop.ignatz42.dyndns.org <> | 2006-08-21 20:33:22 -0400 |
---|---|---|
committer | iggy@rolltop.ignatz42.dyndns.org <> | 2006-08-21 20:33:22 -0400 |
commit | f6dbea4f2f5bc8063640be8ad84fa0f477d7c900 (patch) | |
tree | ad52edcc3f1d4b21c524e14dfd617f93e8daad28 | |
parent | 0f54eccbb09aa302e5b59846e1cc3a815ac8ab8c (diff) | |
parent | 39a8fe6e4490f77a731c33f80cfd2e307d9bb028 (diff) | |
download | mariadb-git-f6dbea4f2f5bc8063640be8ad84fa0f477d7c900.tar.gz |
Merge rolltop.ignatz42.dyndns.org:/mnt/storeage/mysql-5.0-maint_21757
into rolltop.ignatz42.dyndns.org:/mnt/storeage/mysql-5.1-new-maint_21757
-rw-r--r-- | tests/mysql_client_test.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index 02170f6aacb..0b57e5a555b 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -14968,7 +14968,7 @@ static void test_bug17667() strcpy(master_log_filename, opt_vardir); strcat(master_log_filename, "/log/master.log"); printf("Opening '%s'\n", master_log_filename); - log_file= fopen(master_log_filename, "r"); + log_file= my_fopen(master_log_filename, (int) (O_RDONLY | O_BINARY), MYF(MY_WME)); free(master_log_filename); if (log_file != NULL) { @@ -14993,6 +14993,8 @@ static void test_bug17667() DIE("Read error"); } } + /* Print the line */ + printf("%s", line_buffer); } while (my_memmem(line_buffer, MAX_TEST_QUERY_LENGTH*2, statement_cursor->buffer, statement_cursor->length) == NULL); @@ -15013,7 +15015,7 @@ static void test_bug17667() } if (log_file != NULL) - fclose(log_file); + my_fclose(log_file, MYF(0)); } |