summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorunknown <joerg@mysql.com>2006-06-08 19:55:22 +0200
committerunknown <joerg@mysql.com>2006-06-08 19:55:22 +0200
commitf32d05f516bf9c70e870e664ddb27e2658e968e9 (patch)
treee99cf882171d676d3aeb2067155b223d1c0312f6 /mysql-test/mysql-test-run.pl
parentd0d69b76769129b29f8bd1bd29156118acd2c48c (diff)
downloadmariadb-git-f32d05f516bf9c70e870e664ddb27e2658e968e9.tar.gz
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.
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl7
1 files changed, 7 insertions, 0 deletions
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 <<HERE;
mysql-test-run [ OPTIONS ] [ TESTCASE ]