3 # This is a test of WriteEmptyMakefile.
6 if( $ENV{PERL_CORE} ) {
8 @INC = ('../lib', 'lib');
11 unshift @INC, 't/lib';
18 use Test::More tests => 5;
20 use ExtUtils::MakeMaker qw(WriteEmptyMakefile);
23 can_ok __PACKAGE__, 'WriteEmptyMakefile';
25 eval { WriteEmptyMakefile("something"); };
26 like $@, qr/Need an even number of args/;
30 ok( my $stdout = tie *STDOUT, 'TieOut' );
33 END { 1 while unlink 'wibble' }
37 FIRST_MAKEFILE => "wibble",