summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3824f73)
raw | patch | inline | side by side (parent: 3824f73)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 29 Mar 2006 15:30:34 +0000 (15:30 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 29 Mar 2006 15:30:34 +0000 (15:30 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1364 f882894a-f735-0410-b71e-b25c423dba1c
NPTest.pm | patch | blob | history |
diff --git a/NPTest.pm b/NPTest.pm
index f3fb896a3d7b210ed6d283c3e310190b48849564..1372d1423042bcaf0357f77367679cd6ccf08aad 100644 (file)
--- a/NPTest.pm
+++ b/NPTest.pm
my $object = $class->new;
my $output = `$command`;
+ $object->return_code($? >> 8);
+ $_ = $? & 127;
+ if ($_) {
+ die "Got signal $_ for command $command";
+ }
chomp $output;
-
$object->output($output);
- $object->return_code($? >> 8);
if ($ENV{'NPTEST_DEBUG'}) {
my ($pkg, $file, $line) = caller(0);