diff options
author | Michael G. Schwern <schwern@pobox.com> | 2002-01-17 15:25:57 -0500 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-01-18 00:35:24 +0000 |
commit | 2d8142c661f64cf38c31c13eb111172cbf9b67fc (patch) | |
tree | 4ea00761e88a3460019b20dc42ca3be7e86d9a1b /lib/ExtUtils | |
parent | 6626a13ac83996c34a9c1fb4149bac6ad3a7b8d7 (diff) | |
download | perl-2d8142c661f64cf38c31c13eb111172cbf9b67fc.tar.gz |
MM check_hints test
Message-ID: <20020118012557.GE32762@blackrider>
p4raw-id: //depot/perl@14323
Diffstat (limited to 'lib/ExtUtils')
-rw-r--r-- | lib/ExtUtils/t/hints.t | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/ExtUtils/t/hints.t b/lib/ExtUtils/t/hints.t new file mode 100644 index 0000000000..7038de94ad --- /dev/null +++ b/lib/ExtUtils/t/hints.t @@ -0,0 +1,30 @@ +#!/usr/bin/perl -w + +BEGIN { + if( $ENV{PERL_CORE} ) { + chdir 't'; + @INC = '../lib'; + } +} +chdir 't'; + +use Test::More tests => 1; + +mkdir 'hints'; +my $hint = $^O; +open(HINT, ">hints/$hint.pl") || die "Can't write dummy hints file: $!"; +print HINT <<'CLOO'; +$self->{CCFLAGS} = 'basset hounds got long ears'; +CLOO +close HINT; + +use ExtUtils::MakeMaker; +my $mm = bless {}, 'ExtUtils::MakeMaker'; +$mm->check_hints; +is( $mm->{CCFLAGS}, 'basset hounds got long ears' ); + + +END { + use File::Path; + rmtree ['hints']; +} |