SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
14
devel/p5-Test-Unit/patches/patch-lib_Test_Unit_TestCase_pm
Normal file
14
devel/p5-Test-Unit/patches/patch-lib_Test_Unit_TestCase_pm
Normal file
|
@ -0,0 +1,14 @@
|
|||
Newer Perl does not allow defined with an array.
|
||||
|
||||
Index: lib/Test/Unit/TestCase.pm
|
||||
--- lib/Test/Unit/TestCase.pm.orig
|
||||
+++ lib/Test/Unit/TestCase.pm
|
||||
@@ -103,7 +103,7 @@ sub list_tests {
|
||||
my $class = ref($_[0]) || $_[0];
|
||||
my @tests = ();
|
||||
no strict 'refs';
|
||||
- if (defined(@{"$class\::TESTS"})) {
|
||||
+ if (@{"$class\::TESTS"}) {
|
||||
push @tests, @{"$class\::TESTS"};
|
||||
}
|
||||
else {
|
Loading…
Add table
Add a link
Reference in a new issue