summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorBjorn Munch <Bjorn.Munch@sun.com>2009-09-01 19:31:28 +0200
committerBjorn Munch <Bjorn.Munch@sun.com>2009-09-01 19:31:28 +0200
commit5703baad97a116694b9f95009ab788dc6fc0fc2a (patch)
tree069cf6e032f055f36014506f2dd4e36f68cf3270 /client
parent202984236ac333a46539033e4d6bdb29c4593cc2 (diff)
parent3efecb16260d060e9bc28309ff54b044fb8d4027 (diff)
downloadmariadb-git-5703baad97a116694b9f95009ab788dc6fc0fc2a.tar.gz
merge
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc
index fb4b9c6ec13..0cf7e62ac8c 100644
--- a/client/mysqltest.cc
+++ b/client/mysqltest.cc
@@ -3440,12 +3440,17 @@ void do_diff_files(struct st_command *command)
die("command \"diff_files\" failed, file '%s' does not exist",
ds_filename2.str);
- if ((error= compare_files(ds_filename.str, ds_filename2.str)))
+ if ((error= compare_files(ds_filename.str, ds_filename2.str)) &&
+ match_expected_error(command, error, NULL) < 0)
{
/* Compare of the two files failed, append them to output
- so the failure can be analyzed
+ so the failure can be analyzed, but only if it was not
+ expected to fail.
*/
show_diff(&ds_res, ds_filename.str, ds_filename2.str);
+ log_file.write(&ds_res);
+ log_file.flush();
+ dynstr_set(&ds_res, 0);
}
dynstr_free(&ds_filename);