summaryrefslogtreecommitdiff
path: root/mysql-test/lib/mtr_report.pl
diff options
context:
space:
mode:
authorunknown <joerg@mysql.com>2005-09-14 13:55:53 +0200
committerunknown <joerg@mysql.com>2005-09-14 13:55:53 +0200
commitabd4974fd5c1405da1794bf7fe0999e37a7e485e (patch)
treee7896e3513ce3c707201b78e5ecfb6c0ebc573ad /mysql-test/lib/mtr_report.pl
parenta5903ed9f322ade1a3bab7e6c7ddc8236b7b3f05 (diff)
downloadmariadb-git-abd4974fd5c1405da1794bf7fe0999e37a7e485e.tar.gz
Improve error / process handling in the Perl script to run the test suite (patch supplied by Kent).
mysql-test/lib/mtr_process.pl: Handle errors in child processes separate from the parent process (patch supplied by Kent). mysql-test/lib/mtr_report.pl: New function to handle errors in child processes separate from the parent process (patch supplied by Kent). Expected to avoid HUP signals.
Diffstat (limited to 'mysql-test/lib/mtr_report.pl')
-rw-r--r--mysql-test/lib/mtr_report.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/lib/mtr_report.pl b/mysql-test/lib/mtr_report.pl
index 6db68524db7..9002f204602 100644
--- a/mysql-test/lib/mtr_report.pl
+++ b/mysql-test/lib/mtr_report.pl
@@ -19,6 +19,7 @@ sub mtr_print_header ();
sub mtr_report (@);
sub mtr_warning (@);
sub mtr_error (@);
+sub mtr_child_error (@);
sub mtr_debug (@);
@@ -286,6 +287,11 @@ sub mtr_error (@) {
mtr_exit(1);
}
+sub mtr_child_error (@) {
+ print STDERR "mysql-test-run: *** ERROR(child): ",join(" ", @_),"\n";
+ exit(1);
+}
+
sub mtr_debug (@) {
if ( $::opt_script_debug )
{