diff options
author | unknown <msvensson@neptunus.(none)> | 2006-08-07 14:02:57 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-08-07 14:02:57 +0200 |
commit | 703c50e639889be2bfd8881cc543f339c81099dd (patch) | |
tree | d086fc3e9b324f6f7676579ce4a1cbd1bde02349 /tests | |
parent | f93b1e4837468e6fb8644acdb56bb35151ee41ef (diff) | |
download | mariadb-git-703c50e639889be2bfd8881cc543f339c81099dd.tar.gz |
Add printouts in test case for bug17667
tests/mysql_client_test.c:
Add printout describing what master.log is to be opened.
Add printout about statements that are found in the log.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index 89b07143873..f5acf179319 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -14937,6 +14937,7 @@ static void test_bug17667() master_log_filename = (char *) malloc(strlen(opt_vardir) + strlen("/log/master.log") + 1); 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"); free(master_log_filename); @@ -14956,6 +14957,9 @@ static void test_bug17667() } while (my_memmem(line_buffer, MAX_TEST_QUERY_LENGTH*2, statement_cursor->buffer, statement_cursor->length) == NULL); + + printf("Found statement starting with \"%s\"\n", + statement_cursor->buffer); } printf("success. All queries found intact in the log.\n"); |