Subject: | perl 5.8: Goto undefined subroutine &Role::Tiny::__get_linear_isa_dfs |
This is with perl 5.8.8:
$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/concrete-methods..........ok
t/create-hook...............ok
t/does......................Goto undefined subroutine &Role::Tiny::__get_linear_isa_dfs at /builddir/build/BUILD/Role-Tiny-2.000004/blib/lib/Role/Tiny.pm line 477.
# Looks like your test died before it could output anything.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-14
Failed 14/14 tests, 0.00% okay
t/load-module...............ok
t/method-conflicts..........ok
t/overload..................ok
3/15 unexpectedly succeeded
t/role-basic-basic..........ok
t/role-basic-bugs...........Goto undefined subroutine &Role::Tiny::__get_linear_isa_dfs at /builddir/build/BUILD/Role-Tiny-2.000004/blib/lib/Role/Tiny.pm line 477.
# Looks like you planned 15 tests but only ran 8.
# Looks like your test died just after 8.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 9-15
Failed 7/15 tests, 53.33% okay
t/role-basic-composition....Goto undefined subroutine &Role::Tiny::__get_linear_isa_dfs at /builddir/build/BUILD/Role-Tiny-2.000004/blib/lib/Role/Tiny.pm line 477.
# Looks like you planned 31 tests but only ran 6.
# Looks like your test died just after 6.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 7-31
Failed 25/31 tests, 19.35% okay
t/role-basic-exceptions.....ok
t/role-duplication..........ok
t/role-long-package-name....ok
t/role-tiny-composition.....ok
t/role-tiny-with............ok
t/role-tiny.................Goto undefined subroutine &Role::Tiny::__get_linear_isa_dfs at /builddir/build/BUILD/Role-Tiny-2.000004/blib/lib/Role/Tiny.pm line 477.
# Looks like you planned 18 tests but only ran 3.
# Looks like your test died just after 3.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 4-18
Failed 15/18 tests, 16.67% okay
t/role-with-inheritance.....Goto undefined subroutine &Role::Tiny::__get_linear_isa_dfs at /builddir/build/BUILD/Role-Tiny-2.000004/blib/lib/Role/Tiny.pm line 477.
# Looks like your test died before it could output anything.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-5
Failed 5/5 tests, 0.00% okay
t/subclass..................ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/does.t 255 65280 14 28 200.00% 1-14
t/role-basic-bugs.t 255 65280 15 14 93.33% 9-15
t/role-basic-composition.t 255 65280 31 50 161.29% 7-31
t/role-tiny.t 255 65280 18 30 166.67% 4-18
t/role-with-inheritance.t 255 65280 5 10 200.00% 1-5
(3 subtests UNEXPECTEDLY SUCCEEDED).
Failed 5/17 test scripts, 70.59% okay. 66/138 subtests failed, 52.17% okay.
make: *** [test_dynamic] Error 255
I think it's a typo/thinko - attached patch resolves it for me.
Subject: | Role-Tiny-2.000004-perl58.patch |
--- lib/Role/Tiny.pm
+++ lib/Role/Tiny.pm
@@ -472,7 +472,7 @@ sub _get_isa ($;$) {
*__get_isa = \&mro::get_linear_isa;
}
else {
- *__get_isa = \&__get_linear_isa_dfs;
+ *__get_isa = \&_get_linear_isa_dfs;
}
goto &__get_isa;
}