Subject: | [PATCH] 02_log.t fails on Win32 |
t/02_log.t fails on Win32 because the test is executed as "t/02_log.t"
and that does not matches "File::Spec->catfile('t', '')"
Proposed fix:
-my $filename = File::Spec->catfile('t', '02_log.t');
+my $filename = __FILE__;
Here is the full make test output:
------------------------------------------------------------------
Running make test
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e"
"test_harness(0,
'blib\lib', 'blib\arch')" t/*.t
t/00_compile.t ....... ok
t/01_configure.t ..... ok
# Failed test 'debug'
# at t/02_log.t line 32.
# '[Mon Oct 25 18:00:30 2010] [debug] debug at
t/02_log.t line
26[Mon Oct 25 18:00:30 2010] [alert] alert at t/02_log.t line 27'
# doesn't match '(?-xism:debug at t\\02_log\.t)'
# Failed test 'alert'
# at t/02_log.t line 33.
# '[Mon Oct 25 18:00:30 2010] [debug] debug at
t/02_log.t line
26[Mon Oct 25 18:00:30 2010] [alert] alert at t/02_log.t line 27'
# doesn't match '(?-xism:alert at t\\02_log\.t)'
# Looks like you failed 2 tests of 4.
t/02_log.t ...........
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/4 subtests
t/03_reload.t ........ skipped: These tests fail in Win32 for silly reasons
t/04_nolog.t ......... ok
t/05_compat.t ........ ok
t/06_configurator.t .. ok
t/07_hardwired.t ..... ok
t/08_datetime.t ...... ok
t/09_ini.t ........... ok
t/10_caller.t ........ ok
t/11_no_watch.t ...... ok
t/12_inherit.t ....... ok
t/13_do_reload.t ..... ok
t/14_destroy.t ....... ok
t/15_appconfig.t ..... ok
Test Summary Report
-------------------
t/02_log.t (Wstat: 512 Tests: 4 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 2
Files=16, Tests=46, 4 wallclock secs ( 0.06 usr + 0.11 sys = 0.17 CPU)
Result: FAIL
Failed 1/16 test programs. 2/46 subtests failed.
------------------------------------------------------------------
--
Olivier Mengué - http://search.cpan.org/~dolmen/ http://github.com/dolmen/