diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2016-06-01 20:21:36 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2016-06-01 20:21:36 +0200 |
commit | 22ede741f0a4edfcbbae78fd5a23c24056fc7dcb (patch) | |
tree | 648de93e34d62f6092dfa25a0a7556483f866053 /mysql-test/mysql-test-run.pl | |
parent | 23fed784048624cb147efdc0e54287c13cdcf12c (diff) | |
download | mariadb-git-22ede741f0a4edfcbbae78fd5a23c24056fc7dcb.tar.gz |
fix compile error - inconsistent use of 'struct' and 'class' for TDC_element
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 7e5292c1a8e..e1d50d6e0a8 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -1854,11 +1854,17 @@ sub collect_mysqld_features { $list =~ s/\n {22}(\S)/ $1/g; my @list= split '\n', $list; + + $mysql_version_id= 0; + while (defined(my $line = shift @list)){ + if ($line =~ /^\Q$exe_mysqld\E\s+Ver\s(\d+)\.(\d+)\.(\d+)(\S*)/ ) { + $mysql_version_id= $1*10000 + $2*100 + $3; + mtr_report("MariaDB Version $1.$2.$3$4"); + last; + } + } mtr_error("Could not find version of MariaDB") - unless shift(@list) =~ /^\Q$exe_mysqld\E\s+Ver\s(\d+)\.(\d+)\.(\d+)(\S*)/; - $mysql_version_id= $1*10000 + $2*100 + $3; - $mysql_version_extra= $4; - mtr_report("MariaDB Version $1.$2.$3$4"); + unless $mysql_version_id > 0; for (@list) { |