From f32d05f516bf9c70e870e664ddb27e2658e968e9 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 8 Jun 2006 19:55:22 +0200 Subject: [PATCH] mysql-test/mysql-test-run.pl : Output the usage error if one is given. (Found when fixing bug#20303) mysql-test/mysql-test-run.pl: Found when fixing bug#20303: The "usage()" function ignored the message it was given, so we got no real indication about the problem. Print it if one is given. --- mysql-test/mysql-test-run.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 2399911cff3..a20f39b59fc 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -2459,6 +2459,13 @@ sub valgrind_arguments { ############################################################################## sub usage ($) { + my $message= shift; + + if ( $message ) + { + print STDERR "$message \n"; + } + print STDERR <