Skip to content

Commit

Permalink
Fix the Win32 test for the change splitting init_others out into init…
Browse files Browse the repository at this point in the history
…_tools.

For rt.cpan.org 72096
  • Loading branch information
schwern committed Nov 1, 2011
1 parent e05280c commit 5d3bcd8
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions t/MM_Win32.t
Expand Up @@ -104,13 +104,20 @@ delete $ENV{PATHEXT} unless $had_pathext;
'catfile() eq File::Spec->catfile()' );
}

# init_others(): check if all keys are created and set?
# qw( TOUCH CHMOD CP RM_F RM_RF MV NOOP TEST_F LD AR LDLOADLIBS DEV_NUL )
{
# init_tools(): check if all keys are created and set?
note "init_tools creates expected keys"; {
my $mm_w32 = bless( { BASEEXT => 'Foo', MAKE => $Config{make} }, 'MM' );
$mm_w32->init_tools();
my @keys = qw( TOUCH CHMOD CP RM_F RM_RF MV NOOP NOECHO SHELL ECHO ECHO_N TEST_F DEV_NULL );
for my $key ( @keys ) {
ok( $mm_w32->{ $key }, "init_tools: $key" );
}
}

note "init_others creates expected keys"; {
my $mm_w32 = bless( { BASEEXT => 'Foo', MAKE => $Config{make} }, 'MM' );
$mm_w32->init_others();
my @keys = qw( TOUCH CHMOD CP RM_F RM_RF MV NOOP
TEST_F LD AR LDLOADLIBS DEV_NULL );
my @keys = qw( LD AR LDLOADLIBS );
for my $key ( @keys ) {
ok( $mm_w32->{ $key }, "init_others: $key" );
}
Expand Down

0 comments on commit 5d3bcd8

Please sign in to comment.