r22338: Allow regexes in known-failures file
authorJelmer Vernooij <jelmer@samba.org>
Wed, 18 Apr 2007 14:18:33 +0000 (14:18 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:51:05 +0000 (14:51 -0500)
(This used to be commit 74efac5ce2655e47f8274f484630b82b6d5fcb24)

source4/script/tests/selftest.pl

index da4f097701648f929859614d006aed3890bd07dd..8d72928ed51fec0404c328248da6f39357ab2274 100755 (executable)
@@ -161,7 +161,9 @@ sub expecting_failure($)
 {
        my $fullname = shift;
 
-       return 1 if (grep(/^$fullname$/, @expected_failures));
+       foreach (@expected_failures) {
+               return 1 if ($fullname =~ /$_/);
+       }
 
        return 0;
 }
@@ -317,6 +319,7 @@ sub run_test($$$$$$)
                                        $statistics->{TESTS_EXPECTED_FAIL}++;
                                        $expected_ret = 0;
                                } else {
+                                       print "n:$name/$2l\n";
                                        $statistics->{TESTS_UNEXPECTED_FAIL}++;
                                }
                        } elsif ($1 eq "skip") {