jberger/Module-UseFrom — Issue #1: use_if_available fails on activestate win32
Author: jberger
Created: 2012-01-15 06:00:59+00:00
State: open

From: SLAFFAN @t cpan d0t org
Via RT: Bug 74005 https://rt.cpan.org/Public/Bug/Display.html?id=74005

Thanks for the module, but unfortunately it has test errors for win32
ActivePerl.

See attached cpanm build log for details.

Regards,
Shawn.

== relevant test failures ==

```
# Failed test 'Loads Net::FTP from scalar'
# at t/use_if_available.t line 58.

# Failed test 'Net::FTP statement in variable'
# at t/use_if_available.t line 59.
# 'use_if_available got: use_if_available $core;
# use_if_available returned: use_if_available ;
# use_if_available got: use_if_available $bad;
# use_if_available returned: use_if_available ;
# use_if_available got: use_if_available $non_core;
# use_if_available returned: use_if_available ;
# use_if_available got: use_if_available $version_ok 0.01;
# use_if_available returned: use_if_available ;
# use_if_available got: use_if_available $version_bad 999;
# use_if_available returned: use_if_available ;
# use_if_available got: use_if_available $version_ok_import 0.01 qw/croak/;
# use_if_available returned: use_if_available qw/croak/;
# use_if_available got: use_if_available $version_bad_import 999 qw/dualvar/;
# use_if_available returned: use_if_available qw/dualvar/;
# '
# doesn't match '(?^:Net::FTP)'

# Failed test 'Loads Pod::Parser with version'
# at t/use_if_available.t line 61.

# Failed test 'Pod::Parser (with version) statement in variable'
# at t/use_if_available.t line 62.
# 'use_if_available got: use_if_available $core;
# use_if_available returned: use_if_available ;
# use_if_available got: use_if_available $bad;
# use_if_available returned: use_if_available ;
# use_if_available got: use_if_available $non_core;
# use_if_available returned: use_if_available ;
# use_if_available got: use_if_available $version_ok 0.01;
# use_if_available returned: use_if_available ;
# use_if_available got: use_if_available $version_bad 999;
# use_if_available returned: use_if_available ;
# use_if_available got: use_if_available $version_ok_import 0.01 qw/croak/;
# use_if_available returned: use_if_available qw/croak/;
# use_if_available got: use_if_available $version_bad_import 999 qw/dualvar/;
# use_if_available returned: use_if_available qw/dualvar/;
# '
# doesn't match '(?^:Pod::Parser)'

# Failed test 'Imports croak (with version)'
# at t/use_if_available.t line 66.

# Failed test 'loaded core module returns numerical value'
# at t/use_if_available.t line 69.

# Failed test 'Loads non-core module (ActivePerl::CPAN::Config)'
# at t/use_if_available.t line 77.
# Looks like you failed 7 tests of 14.
t/use_if_available.t ..
Dubious, test returned 7 (wstat 1792, 0x700)
Failed 7/14 subtests

Test Summary Report
-------------------
t/use_if_available.t (Wstat: 1792 Tests: 14 Failed: 7)
Failed tests: 3-6, 8, 10, 14
Non-zero exit status: 7
Files=6, Tests=23, 13 wallclock secs ( 0.05 usr + 0.03 sys = 0.08 CPU)
Result: FAIL
Failed 1/6 test programs. 7/23 subtests failed.
```