summaryrefslogtreecommitdiff
path: root/lib/ExtUtils/t
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2006-10-10 15:01:21 +0000
committerSteve Peters <steve@fisharerojo.org>2006-10-10 15:01:21 +0000
commita85f5f830de99e846a58c552c8fda7263c54db75 (patch)
tree2595f85ad44a9195422ff9d041c2135489ba59e4 /lib/ExtUtils/t
parent6a93515622cf0655623a39a9eaff82a4b9b3268b (diff)
downloadperl-a85f5f830de99e846a58c552c8fda7263c54db75.tar.gz
Upgrade to ExtUtils-Command-1.12.
p4raw-id: //depot/perl@28987
Diffstat (limited to 'lib/ExtUtils/t')
-rw-r--r--lib/ExtUtils/t/eu_command.t22
1 files changed, 10 insertions, 12 deletions
diff --git a/lib/ExtUtils/t/eu_command.t b/lib/ExtUtils/t/eu_command.t
index 7446f5f005..1157b3a24c 100644
--- a/lib/ExtUtils/t/eu_command.t
+++ b/lib/ExtUtils/t/eu_command.t
@@ -23,14 +23,14 @@ BEGIN {
}
BEGIN {
- use Test::More tests => 41;
+ use Test::More tests => 40;
use File::Spec;
}
BEGIN {
# bad neighbor, but test_f() uses exit()
- *CORE::GLOBAL::exit = ''; # quiet 'only once' warning.
- *CORE::GLOBAL::exit = sub { return @_ };
+ *CORE::GLOBAL::exit = ''; # quiet 'only once' warning.
+ *CORE::GLOBAL::exit = sub (;$) { return $_[0] };
use_ok( 'ExtUtils::Command' );
}
@@ -53,9 +53,9 @@ BEGIN {
is( scalar( $$out =~ s/use_ok\( 'ExtUtils::Command'//g), 2,
'concatenation worked' );
- # the truth value here is reversed -- Perl true is C false
+ # the truth value here is reversed -- Perl true is shell false
@ARGV = ( $Testfile );
- ok( test_f(), 'testing non-existent file' );
+ is( test_f(), 1, 'testing non-existent file' );
@ARGV = ( $Testfile );
is( ! test_f(), '', 'testing non-existent file' );
@@ -65,7 +65,7 @@ BEGIN {
touch();
@ARGV = ( $Testfile );
- ok( test_f(), 'now creating that file' );
+ is( test_f(), 0, 'testing touch() and test_f()' );
is_deeply( \@ARGV, [$Testfile], 'test_f preserves @ARGV' );
@ARGV = ( $Testfile );
@@ -148,7 +148,7 @@ BEGIN {
$^O eq 'NetWare' || $^O eq 'dos' || $^O eq 'cygwin' ||
$^O eq 'MacOS'
) {
- skip( "different file permission semantics on $^O", 4);
+ skip( "different file permission semantics on $^O", 5);
}
@ARGV = ('testdir');
@@ -178,6 +178,7 @@ BEGIN {
@ARGV = ('testdir');
rm_rf;
+ ok( ! -e 'testdir', 'rm_rf can delete a read-only dir' );
}
@@ -185,15 +186,12 @@ BEGIN {
my $test_dir = File::Spec->join( 'ecmddir', 'temp2' );
@ARGV = ( $test_dir );
ok( ! -e $ARGV[0], 'temp directory not there yet' );
- ok( test_d(), 'testing non-existent directory' );
-
- @ARGV = ( $test_dir );
- is( ! test_d(), '', 'testing non-existent dir' );
+ is( test_d(), 1, 'testing non-existent directory' );
@ARGV = ( $test_dir );
mkpath();
ok( -e $ARGV[0], 'temp directory created' );
- cmp_ok( test_d(), '==', (-d $test_dir), 'testing existing dir' );
+ is( test_d(), 0, 'testing existing dir' );
@ARGV = ( $test_dir );
# copy a file to a nested subdirectory