runtests: fix "use of undefined value" warning in -R handling

This commit is contained in:
Daniel Stenberg 2017-05-08 10:08:48 +02:00
parent e2b394106d
commit e3f84efc32
1 changed files with 5 additions and 1 deletions

View File

@ -5179,7 +5179,11 @@ if($scrambleorder) {
# scramble the order of the test cases
my @rand;
while($TESTCASES) {
my @all = split(/ /, $TESTCASES);
my @all = split(/ +/, $TESTCASES);
if(!$all[0]) {
# if the first is blank, shift away it
shift @all;
}
my $r = rand @all;
push @rand, $all[$r];
$all[$r]="";