Commit f9ff7472 authored by unknown's avatar unknown
Browse files

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
parent 13c55f3c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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