gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 109/254: runtests: fix "use of undefined value" war


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 109/254: runtests: fix "use of undefined value" warning in -R handling
Date: Sat, 17 Jun 2017 16:52:21 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.54.1
in repository gnurl.

commit e3f84efc32d6b01a605c93b39668653049c15188
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon May 8 10:08:48 2017 +0200

    runtests: fix "use of undefined value" warning in -R handling
---
 tests/runtests.pl | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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]="";

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]