mirror of
https://github.com/curl/curl.git
synced 2025-02-17 14:59:45 +08:00
runtests: fix "use of undefined value" warning in -R handling
This commit is contained in:
parent
e2b394106d
commit
e3f84efc32
@ -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]="";
|
||||
|
Loading…
Reference in New Issue
Block a user