diff options
author | unknown <msvensson@shellback.(none)> | 2006-03-23 15:04:46 +0100 |
---|---|---|
committer | unknown <msvensson@shellback.(none)> | 2006-03-23 15:04:46 +0100 |
commit | 685ca4d748c03aee97b95211948496171fa61ef0 (patch) | |
tree | 977823e5074f34c30c9345b20b1647172f9a9561 /client/mysqltest.c | |
parent | fd6d45f0b0de5a8f0767d96d8f12cbca649f454c (diff) | |
download | mariadb-git-685ca4d748c03aee97b95211948496171fa61ef0.tar.gz |
Dump reject file before mysqltest in 'die'
Makes it easier to see what happened before the failure
client/mysqltest.c:
Dump reject file before mysqltest in 'die'
Diffstat (limited to 'client/mysqltest.c')
-rw-r--r-- | client/mysqltest.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index 3f2e7d8edb6..c15435bcbdf 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -573,6 +573,8 @@ static void die(const char *fmt, ...) { va_list args; DBUG_ENTER("die"); + + /* Print the error message */ va_start(args, fmt); if (fmt) { @@ -587,6 +589,15 @@ static void die(const char *fmt, ...) fflush(stderr); } va_end(args); + + /* Dump the result that has been accumulated so far to reject file */ + if (result_file && ds_res.length) + { + + reject_dump(result_file, ds_res.str, ds_res.length); + } + + /* Clean up and exit */ free_used_memory(); my_end(MY_CHECK_ERROR); exit(1); |