List:Commits« Previous MessageNext Message »
From:Magnus Svensson Date:August 25 2008 3:51pm
Subject:bzr commit into mysql-5.1 branch (msvensson:2659)
View as plain text  
#At file:///home/msvensson/mysql/5.1-rpl/

 2659 Magnus Svensson	2008-08-25
      Print error message in diff_files if any of the two files to diff does not exist
modified:
  client/mysqltest.cc

=== modified file 'client/mysqltest.cc'
--- a/client/mysqltest.cc	2008-08-09 12:59:57 +0000
+++ b/client/mysqltest.cc	2008-08-25 15:51:24 +0000
@@ -3335,6 +3335,14 @@ void do_diff_files(struct st_command *co
                      sizeof(diff_file_args)/sizeof(struct command_arg),
                      ' ');
 
+  if (access(ds_filename.str, F_OK) != 0)
+    die("command \"diff_files\" failed, file '%s' does not exist",
+        ds_filename.str);
+
+  if (access(ds_filename2.str, F_OK) != 0)
+    die("command \"diff_files\" failed, file '%s' does not exist",
+        ds_filename2.str);
+
   if ((error= compare_files(ds_filename.str, ds_filename2.str)))
   {
     /* Compare of the two files failed, append them to output

Thread
bzr commit into mysql-5.1 branch (msvensson:2659) Magnus Svensson26 Aug