List:Commits« Previous MessageNext Message »
From:Davi Arnaut Date:March 3 2008 7:34pm
Subject:bk commit into 5.0 tree (davi:1.2593) BUG#35009
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of davi.  When davi does a push these changes
will be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2008-03-03 15:34:12-03:00, davi@stripped +1 -0
  Bug#35009 Results of mysql_client_test are discarded upon failure
  
  It's impossible to determine which test inside mysql_client_test
  failed if the log file is overwritten. Always append
  when dumping results to the log file.

  client/mysqltest.c@stripped, 2008-03-03 15:34:10-03:00, davi@stripped +4 -4
    Append result to log file.

diff -Nrup a/client/mysqltest.c b/client/mysqltest.c
--- a/client/mysqltest.c	2008-02-07 18:52:28 -02:00
+++ b/client/mysqltest.c	2008-03-03 15:34:10 -03:00
@@ -5384,10 +5384,10 @@ void str_to_file(const char *fname, char
 void dump_result_to_log_file(char *buf, int size)
 {
   char log_file[FN_REFLEN];
-  str_to_file(fn_format(log_file, result_file_name, opt_logdir, ".log",
-                        *opt_logdir ? MY_REPLACE_DIR | MY_REPLACE_EXT :
-                        MY_REPLACE_EXT),
-              buf, size);
+  str_to_file2(fn_format(log_file, result_file_name, opt_logdir, ".log",
+                         *opt_logdir ? MY_REPLACE_DIR | MY_REPLACE_EXT :
+                         MY_REPLACE_EXT),
+               buf, size, TRUE);
   fprintf(stderr, "\nMore results from queries before failure can be found in %s\n",
           log_file);
 }
Thread
bk commit into 5.0 tree (davi:1.2593) BUG#35009Davi Arnaut3 Mar