Skip to content

Commit

Permalink
more compact form
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Oct 10, 2012
1 parent a17ef51 commit a992cb6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions t/tools/win32.t
Expand Up @@ -6,6 +6,8 @@ use warnings;
use English qw(-no_match_vars);
use Test::More;

use FusionInventory::Agent::Tools;

BEGIN {
# use mock modules for non-available ones
push @INC, 't/fake/windows' if $OSNAME ne 'MSWin32';
Expand All @@ -20,11 +22,9 @@ if ($OSNAME ne 'MSWin32') {
}
my ($code, $fd) = runCommand(command => "perl -V");
ok($code eq 0, "perl -V returns 0");
my $seemOk;
foreach (<$fd>) {
$seemOk=1 if /Summary of my perl5/;
}
ok($seemOk eq 1, "perl -V output looks good");

ok(any { /Summary of my perl5/ } <$fd>, "perl -V output looks good");

($code, $fd) = runCommand(
timeout => 1,
command => "perl -e\"sleep 10\""
Expand Down

0 comments on commit a992cb6

Please sign in to comment.