Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

State precisely Installation of Test::Unit #75

Open
dilyanpalauzov opened this issue Jun 29, 2019 · 0 comments
Open

State precisely Installation of Test::Unit #75

dilyanpalauzov opened this issue Jun 29, 2019 · 0 comments

Comments

@dilyanpalauzov
Copy link

The last released version of Test::Unit is 0.25. Perl 5.20.2 complains with it about deprecated "defined(@array)" and does not install it over cpan. Write down in doc/README.deps, that this patch is recommended towards Test::Unit to make the perl interpreter happy:

--- lib/Test/Unit/TestCase.pm.orig
+++ lib/Test/Unit/TestCase.pm
@@ -103,7 +103,7 @@
     my $class = ref($_[0]) || $_[0];
     my @tests = ();
     no strict 'refs';
-    if (defined(@{"$class\::TESTS"})) {
+    if (@{"$class\::TESTS"}) {
         push @tests, @{"$class\::TESTS"};
     }
     else {
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant