Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant