Commit e3f84efc authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

runtests: fix "use of undefined value" warning in -R handling

parent e2b39410
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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]="";