diff options
author | unknown <iggy@rolltop.ignatz42.dyndns.org> | 2006-08-21 20:29:11 -0400 |
---|---|---|
committer | unknown <iggy@rolltop.ignatz42.dyndns.org> | 2006-08-21 20:29:11 -0400 |
commit | ad0f34e38e22d215328ee2407bf232ee5caf6609 (patch) | |
tree | 6b57acb95626c568ba818f6893de4716fc39a252 /tests | |
parent | 7a8f8733e310659522806ebf56b559bba538bff4 (diff) | |
download | mariadb-git-ad0f34e38e22d215328ee2407bf232ee5caf6609.tar.gz |
Bug#21757: mysql_client_test fails in testcase when reading master.log file
tests/mysql_client_test.c:
Replace fopen with my_fopen and specify O_BINARY. Replace fclose with my_fclose.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index 88c1a5737d3..427994f832f 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -14950,7 +14950,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) { @@ -14997,7 +14997,7 @@ static void test_bug17667() } if (log_file != NULL) - fclose(log_file); + my_fclose(log_file, MYF(0)); } |