mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05: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