From: Daniel Stenberg Date: Mon, 8 May 2017 08:08:48 +0000 (+0200) Subject: runtests: fix "use of undefined value" warning in -R handling X-Git-Tag: curl-7_54_1~144 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3f84efc32d6b01a605c93b39668653049c15188;p=curl runtests: fix "use of undefined value" warning in -R handling --- diff --git a/tests/runtests.pl b/tests/runtests.pl index 48e26142f..d20383ae8 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -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]="";