From e3f84efc32d6b01a605c93b39668653049c15188 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 8 May 2017 10:08:48 +0200 Subject: runtests: fix "use of undefined value" warning in -R handling --- tests/runtests.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/runtests.pl') 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]=""; -- cgit v1.2.3