summaryrefslogtreecommitdiff
path: root/mysql-test/lib/mtr_report.pm
diff options
context:
space:
mode:
authorBjorn Munch <bjorn.munch@oracle.com>2011-02-28 16:10:35 +0100
committerBjorn Munch <bjorn.munch@oracle.com>2011-02-28 16:10:35 +0100
commit4a54e5adb157a7eb9bbee84d7aa233ad1fb087a0 (patch)
tree6201dbdae20c8b74952ecbe3ad665672171a6ff5 /mysql-test/lib/mtr_report.pm
parente58e15ff13a6250d71265c72becec3ceb4d34e03 (diff)
downloadmariadb-git-4a54e5adb157a7eb9bbee84d7aa233ad1fb087a0.tar.gz
Attempt at solving missing end of mtr output on Windows
Diffstat (limited to 'mysql-test/lib/mtr_report.pm')
-rw-r--r--mysql-test/lib/mtr_report.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/mysql-test/lib/mtr_report.pm b/mysql-test/lib/mtr_report.pm
index 0090316cf7b..bbf1002c123 100644
--- a/mysql-test/lib/mtr_report.pm
+++ b/mysql-test/lib/mtr_report.pm
@@ -32,6 +32,7 @@ our @EXPORT= qw(report_option mtr_print_line mtr_print_thick_line
use mtr_match;
use My::Platform;
use POSIX qw[ _exit ];
+use IO::Handle qw[ flush ];
require "mtr_io.pl";
my $tot_real_time= 0;
@@ -477,6 +478,7 @@ sub mtr_warning (@) {
# Print error to screen and then exit
sub mtr_error (@) {
+ IO::Handle::flush(\*STDOUT) if IS_WINDOWS;
print STDERR _name(). _timestamp().
"mysql-test-run: *** ERROR: ". join(" ", @_). "\n";
if (IS_WINDOWS)