From 46b33921717a9ec860aca5e77fcab6f94c7cfa20 Mon Sep 17 00:00:00 2001 From: "msvensson@neptunus.(none)" <> Date: Thu, 5 Oct 2006 13:38:08 +0200 Subject: [PATCH] Add regex to detect the empty line that end the variable list. Some variable names in 5.1 is soo long that there is no space inbetween name and value. Outputing a warning about it, as that should probably be fixed. At least one space should be put between the name and value. --- mysql-test/mysql-test-run.pl | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index f680ed909b2..5ae5684d14c 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -1189,9 +1189,19 @@ sub check_mysqld_features () { } else { - # The variable list is ended with a blank line, so when a line - # doesn't match the above regex, break the loop - last; + # The variable list is ended with a blank line + if ( $line =~ /^[\s]*$/ ) + { + last; + } + else + { + # Send out a warning, we should fix the variables that has no + # space between variable name and it's value + # or should it be fixed width column parsing? It does not + # look like that in function my_print_variables in my_getopt.c + mtr_warning("Could not parse variable list line : $line"); + } } } }