Commit 7fef817a authored by unknown's avatar unknown

Fix warnings in mysql-test-run.pl


mysql-test/mysql-test-run.pl:
  Initialise pid to 0 in arrays of masters and slaves
  Fix merge error
mysql-test/lib/mtr_cases.pl:
  Remove "chomp" on undefined
parent f798d068
...@@ -62,7 +62,7 @@ sub collect_test_cases ($) { ...@@ -62,7 +62,7 @@ sub collect_test_cases ($) {
foreach my $tname ( @::opt_cases ) { # Run in specified order, no sort foreach my $tname ( @::opt_cases ) { # Run in specified order, no sort
my $elem= undef; my $elem= undef;
my $component_id= undef; my $component_id= undef;
# Get rid of directory part (path). Leave the extension since it is used # Get rid of directory part (path). Leave the extension since it is used
# to understand type of the test. # to understand type of the test.
...@@ -538,8 +538,6 @@ sub mtr_options_from_test_file($$) { ...@@ -538,8 +538,6 @@ sub mtr_options_from_test_file($$) {
while ( my $line= <$F> ) while ( my $line= <$F> )
{ {
chomp;
next if ( $line !~ /^--/ ); next if ( $line !~ /^--/ );
# Match this line against tag in "tags" array # Match this line against tag in "tags" array
......
...@@ -943,6 +943,7 @@ sub command_line_setup () { ...@@ -943,6 +943,7 @@ sub command_line_setup () {
$master->[0]= $master->[0]=
{ {
pid => 0,
type => "master", type => "master",
idx => 0, idx => 0,
path_myddir => "$opt_vardir/master-data", path_myddir => "$opt_vardir/master-data",
...@@ -958,6 +959,7 @@ sub command_line_setup () { ...@@ -958,6 +959,7 @@ sub command_line_setup () {
$master->[1]= $master->[1]=
{ {
pid => 0,
type => "master", type => "master",
idx => 1, idx => 1,
path_myddir => "$opt_vardir/master1-data", path_myddir => "$opt_vardir/master1-data",
...@@ -973,6 +975,7 @@ sub command_line_setup () { ...@@ -973,6 +975,7 @@ sub command_line_setup () {
$slave->[0]= $slave->[0]=
{ {
pid => 0,
type => "slave", type => "slave",
idx => 0, idx => 0,
path_myddir => "$opt_vardir/slave-data", path_myddir => "$opt_vardir/slave-data",
...@@ -989,6 +992,7 @@ sub command_line_setup () { ...@@ -989,6 +992,7 @@ sub command_line_setup () {
$slave->[1]= $slave->[1]=
{ {
pid => 0,
type => "slave", type => "slave",
idx => 1, idx => 1,
path_myddir => "$opt_vardir/slave1-data", path_myddir => "$opt_vardir/slave1-data",
...@@ -1004,6 +1008,7 @@ sub command_line_setup () { ...@@ -1004,6 +1008,7 @@ sub command_line_setup () {
$slave->[2]= $slave->[2]=
{ {
pid => 0,
type => "slave", type => "slave",
idx => 2, idx => 2,
path_myddir => "$opt_vardir/slave2-data", path_myddir => "$opt_vardir/slave2-data",
...@@ -1172,9 +1177,9 @@ sub executable_setup () { ...@@ -1172,9 +1177,9 @@ sub executable_setup () {
"$path_client_bindir/mysqld-nt", "$path_client_bindir/mysqld-nt",
"$path_client_bindir/mysqld", "$path_client_bindir/mysqld",
"$path_client_bindir/mysqld-max", "$path_client_bindir/mysqld-max",
"$path_client_bindir/mysqld-debug",
"$glob_basedir/sql/release/mysqld", "$glob_basedir/sql/release/mysqld",
"$glob_basedir/sql/debug/mysqld"); "$glob_basedir/sql/debug/mysqld");
"$path_client_bindir/mysqld-debug",
$path_language= mtr_path_exists("$glob_basedir/share/english/", $path_language= mtr_path_exists("$glob_basedir/share/english/",
"$glob_basedir/sql/share/english/"); "$glob_basedir/sql/share/english/");
$path_charsetsdir= mtr_path_exists("$glob_basedir/share/charsets", $path_charsetsdir= mtr_path_exists("$glob_basedir/share/charsets",
......
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