summaryrefslogtreecommitdiff
path: root/lib/ExtUtils/t/writemakefile_args.t
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2002-06-19 16:13:16 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2002-06-19 23:16:37 +0000
commita884ca7cc4e7a429bb7c3666c1a38cb5c2939f80 (patch)
tree1bf16617f96f1d81d2de815dc31722f2f8a86824 /lib/ExtUtils/t/writemakefile_args.t
parent11c6125cf24f3329a0ad93cef69068d611ef27fa (diff)
downloadperl-a884ca7cc4e7a429bb7c3666c1a38cb5c2939f80.tar.gz
ExtUtils::MakeMaker 6.02 -> 6.03
Message-id: <20020620001316.GY1232@ool-18b93024.dyn.optonline.net> p4raw-id: //depot/perl@17314
Diffstat (limited to 'lib/ExtUtils/t/writemakefile_args.t')
-rw-r--r--lib/ExtUtils/t/writemakefile_args.t45
1 files changed, 24 insertions, 21 deletions
diff --git a/lib/ExtUtils/t/writemakefile_args.t b/lib/ExtUtils/t/writemakefile_args.t
index 2160f08255..f4b4daf6e3 100644
--- a/lib/ExtUtils/t/writemakefile_args.t
+++ b/lib/ExtUtils/t/writemakefile_args.t
@@ -14,7 +14,7 @@ BEGIN {
}
use strict;
-use Test::More tests => 16;
+use Test::More tests => 13;
use TieOut;
use MakeMaker::Test::Utils;
@@ -35,33 +35,35 @@ ok( chdir 'Big-Dummy', "chdir'd to Big-Dummy" ) ||
$warnings .= join '', @_;
};
- my $mm = WriteMakefile(
- NAME => 'Big::Dummy',
- VERSION_FROM => 'lib/Big/Dummy.pm',
- MAN3PODS => ' ', # common mistake
- );
+ my $mm;
+
+ eval {
+ $mm = WriteMakefile(
+ NAME => 'Big::Dummy',
+ VERSION_FROM => 'lib/Big/Dummy.pm',
+ MAN3PODS => ' ', # common mistake
+ );
+ };
is( $warnings, <<VERIFY );
WARNING: MAN3PODS takes a hash reference not a string/number.
Please inform the author.
VERIFY
- is_deeply( $mm->{MAN3PODS}, {}, 'Wrong argument type corrected' );
$warnings = '';
- $mm = WriteMakefile(
- NAME => 'Big::Dummy',
- VERSION_FROM => 'lib/Big/Dummy.pm',
- AUTHOR => sub {},
- );
+ eval {
+ $mm = WriteMakefile(
+ NAME => 'Big::Dummy',
+ VERSION_FROM => 'lib/Big/Dummy.pm',
+ AUTHOR => sub {},
+ );
+ };
is( $warnings, <<VERIFY );
WARNING: AUTHOR takes a string/number not a code reference.
Please inform the author.
VERIFY
- is_deeply( $mm->{AUTHOR}, '' );
-
-
# LIBS accepts *both* a string or an array ref. The first cut of
# our verification did not take this into account.
$warnings = '';
@@ -87,15 +89,16 @@ VERIFY
is_deeply( $mm->{LIBS}, ['-lwibble', '-lwobble'] );
$warnings = '';
- $mm = WriteMakefile(
- NAME => 'Big::Dummy',
- VERSION_FROM => 'lib/Big/Dummy.pm',
- LIBS => { wibble => "wobble" },
- );
+ eval {
+ $mm = WriteMakefile(
+ NAME => 'Big::Dummy',
+ VERSION_FROM => 'lib/Big/Dummy.pm',
+ LIBS => { wibble => "wobble" },
+ );
+ };
# We'll get warnings about the bogus libs, that's ok.
like( $warnings, qr{^WARNING: LIBS takes a array reference or string/number not a hash reference}m );
- is_deeply( $mm->{LIBS}, [] );
$warnings = '';