srcs_missing.t (506B)
1 # 2 # There is an error when the default SRCS file is missing. 3 # 4 use Modern::Perl; 5 use Test::Cmd; 6 use Test::More tests => 3; 7 8 9 my $cmd = Test::Cmd->new( prog => '/usr/bin/make', workdir => '' ); 10 my $html_mk = $cmd->here . "/bsd.html.mk"; 11 12 $cmd->write( 'Makefile', <<EOF ); 13 .include "$html_mk" 14 EOF 15 16 my $e = "make: don't know how to make index.in"; 17 18 $cmd->run( chdir => $cmd->curdir ); 19 is( $cmd->stdout, '', 'make stdout' ); 20 like( $cmd->stderr, qr{$e}, 'make stderr' ); 21 is( $? >> 8, 2, 'make exit status' );