mirror of
https://github.com/curl/curl.git
synced 2026-07-28 20:43:07 +03:00
runtests: fix "use of undefined value" warning in -R handling
This commit is contained in:
parent
e2b394106d
commit
e3f84efc32
1 changed files with 5 additions and 1 deletions
|
|
@ -5179,7 +5179,11 @@ if($scrambleorder) {
|
||||||
# scramble the order of the test cases
|
# scramble the order of the test cases
|
||||||
my @rand;
|
my @rand;
|
||||||
while($TESTCASES) {
|
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;
|
my $r = rand @all;
|
||||||
push @rand, $all[$r];
|
push @rand, $all[$r];
|
||||||
$all[$r]="";
|
$all[$r]="";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue