mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
r22338: Allow regexes in known-failures file
(This used to be commit 74efac5ce2
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
08a44496d1
commit
8636c243d6
@ -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") {
|
||||
|
Reference in New Issue
Block a user