Skip to content

Commit

Permalink
Fix t/commandline
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyA committed Nov 14, 2007
1 parent 265cda1 commit 3f23a80
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions t/commandline.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ use File::Spec;
use IPC::Run qw( run timeout );

my @cmd = ( $^X, '-I' . File::Spec->catdir( 't', 'lib' ) );
my @nop = ( '-e', '0' );

like tryit( @cmd, '-MSome::Module' ), qr{^\s*$}, "no error";
like tryit( @cmd, '-MSome::Module', @nop ), qr{^\s*$}, "no error";

like tryit( @cmd, '-Ilib', '-d:Unplug=Some::Module', '-MSome::Module' ),
like tryit( @cmd, '-Ilib', '-MDevel::Unplug=Some::Module', '-MSome::Module', @nop ),
qr{Can't\s+locate\s+Some/Module.pm}, "error message";

like tryit( @cmd, '-Ilib', '-d:Unplug=Some::Module', '-MSome::Other::Module' ),
like tryit( @cmd, '-Ilib', '-MDevel::Unplug=Some::Module', '-MSome::Other::Module', @nop ),
qr{^\s*$}, "no crosstalk";

sub tryit {
Expand Down

0 comments on commit 3f23a80

Please sign in to comment.