diff options
author | unknown <joerg@mysql.com> | 2006-06-08 19:55:22 +0200 |
---|---|---|
committer | unknown <joerg@mysql.com> | 2006-06-08 19:55:22 +0200 |
commit | f32d05f516bf9c70e870e664ddb27e2658e968e9 (patch) | |
tree | e99cf882171d676d3aeb2067155b223d1c0312f6 /mysql-test/mysql-test-run.pl | |
parent | d0d69b76769129b29f8bd1bd29156118acd2c48c (diff) | |
download | mariadb-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-x | mysql-test/mysql-test-run.pl | 7 |
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 ] |