Commit 44c0053a authored by joerg@trift2.mysql.com's avatar joerg@trift2.mysql.com

Merge trift2.mysql.com:/M41/bug20303-4.1

into trift2.mysql.com:/M41/mysql-4.1
parents fe018746 a26c9c31
...@@ -611,6 +611,12 @@ sub command_line_setup () { ...@@ -611,6 +611,12 @@ sub command_line_setup () {
{ {
push(@opt_extra_mysqld_opt, $arg); push(@opt_extra_mysqld_opt, $arg);
} }
elsif ( $arg =~ /^--$/ )
{
# It is an effect of setting 'pass_through' in option processing
# that the lone '--' separating options from arguments survives,
# simply ignore it.
}
elsif ( $arg =~ /^-/ ) elsif ( $arg =~ /^-/ )
{ {
usage("Invalid option \"$arg\""); usage("Invalid option \"$arg\"");
...@@ -2461,6 +2467,13 @@ sub valgrind_arguments { ...@@ -2461,6 +2467,13 @@ sub valgrind_arguments {
############################################################################## ##############################################################################
sub usage ($) { sub usage ($) {
my $message= shift;
if ( $message )
{
print STDERR "$message \n";
}
print STDERR <<HERE; print STDERR <<HERE;
mysql-test-run [ OPTIONS ] [ TESTCASE ] mysql-test-run [ OPTIONS ] [ TESTCASE ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment