schwern/test-more — Issue #255: Test::Builder::Tester is case sensitive, causing tests to fail with 1.5
Author: barefootcoder
Created: 2012-02-18 04:51:16+00:00
State: open

I recently started co-maint on `Test::File`. It contains some code like this:

{
local $^O = 'Win32';

my @subs = qw(
file_mode_is file_mode_isnt
file_executable_ok file_not_executable_ok
);

foreach my $sub ( @subs )
{
no strict 'refs';

test_out("ok 1 # skip $sub doesn't work on Windows!");
&{$sub}();
test_test();
}

}

which works fine on `Test::More` prior to 1.x, but fails for CPAN Testers who have upgraded to 1.5 (specifically 1.005000_002). The failure looks like:

# Failed test at t/win32.t line 35.
# STDOUT is:
# ok 1 # SKIP file_not_executable_ok doesn't work on Windows!
#
# not:
# ok 1 # skip file_not_executable_ok doesn't work on Windows!
#
# as expected

i.e. the capitalization of "skip" is different. I asked on perl-qa and Ovid advised me that TAP should be case-insensitve, so perhaps Test::Builder::Tester should be changed to ignore case differences ... ? Or maybe there's a better way to do this than calling `test_out` directly as brian d foy is doing there, but I didn't see anything in TBT's POD.

This may or may not be related to #254.