Skip to content

Commit

Permalink
test execution errors too
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Jun 1, 2012
1 parent 8376c04 commit e02c07b
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions t/apps/agent.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use XML::TreePP;

use FusionInventory::Agent::Tools;

use Test::More tests => 42;
use Test::More tests => 46;

my ($out, $err, $rc);

Expand Down Expand Up @@ -54,7 +54,13 @@ ok($rc == 0, 'exit status');
unlike(
$err,
qr/module \S+ disabled: failure to load/,
'no broken module'
'no broken module (loading)'
);

unlike(
$err,
qr/unexpected error in \S+/,
'no broken module (execution)'
);

like(
Expand Down Expand Up @@ -85,7 +91,13 @@ ok($rc == 0, 'exit status');
unlike(
$err,
qr/module \S+ disabled: failure to load/,
'no broken module'
'no broken module (loading)'
);

unlike(
$err,
qr/unexpected error in \S+/,
'no broken module (execution)'
);

like(
Expand Down Expand Up @@ -130,7 +142,13 @@ ok($rc == 0, 'exit status');
unlike(
$err,
qr/module \S+ disabled: failure to load/,
'no broken module'
'no broken module (loading)'
);

unlike(
$err,
qr/unexpected error in \S+/,
'no broken module (execution)'
);

like(
Expand Down Expand Up @@ -176,7 +194,13 @@ ok($rc == 0, 'exit status');
unlike(
$err,
qr/module \S+ disabled: failure to load/,
'no broken module'
'no broken module (loading)'
);

unlike(
$err,
qr/unexpected error in \S+/,
'no broken module (execution)'
);

like(
Expand Down

0 comments on commit e02c07b

Please sign in to comment.