selftest: Cope with strict.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 12 Apr 2010 14:11:31 +0000 (16:11 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 12 Apr 2010 14:35:18 +0000 (16:35 +0200)
selftest/selftest.pl

index 7bc14b12cb5287e2acd12c325befaefc60ed6601..aa3d79c5d78dad85f16d846707fe792231e35ed0 100755 (executable)
@@ -641,7 +641,7 @@ sub read_testlist($)
 
        while (<IN>) {
                if (/-- TEST(-LOADLIST)? --\n/) {
-                       my $supports_loadlist = ($1 eq "-LOADLIST");
+                       my $supports_loadlist = (defined($1) and $1 eq "-LOADLIST");
                        my $name = <IN>;
                        $name =~ s/\n//g;
                        my $env = <IN>;