summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-10-23 20:36:44 +0200
committerunknown <msvensson@neptunus.(none)>2006-10-23 20:36:44 +0200
commitf9ff7472a23d97cc7235b5396191b02aad37fc21 (patch)
tree1d7f17505ea480e539ccff1a42b4fce82784a146 /mysql-test
parent13c55f3c1783d8820ad6f2c538a187b371b3017a (diff)
downloadmariadb-git-f9ff7472a23d97cc7235b5396191b02aad37fc21.tar.gz
Avoid matching the trailing carriage return when parsing the mysqld.spec file
This fixes problem where --replace_result failed in rpl000015 because the MYSQL_TCP_PORT variable was "3306\r" mysql-test/mysql-test-run.pl: Avoid matching the trailing carriage return when parsing the mysqld.spec file
Diffstat (limited to 'mysql-test')
-rwxr-xr-xmysql-test/mysql-test-run.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 84d84cf8f14..7f1f7a43b10 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -1269,9 +1269,9 @@ sub collect_mysqld_features () {
else
{
# Put variables into hash
- if ( $line =~ /^([\S]+)[ \t]+(.*)$/ )
+ if ( $line =~ /^([\S]+)[ \t]+(.*?)\r?$/ )
{
- # print "$1=$2\n";
+ # print "$1=\"$2\"\n";
$mysqld_variables{$1}= $2;
}
else