X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=NPTest.pm;fp=NPTest.pm;h=1372d1423042bcaf0357f77367679cd6ccf08aad;hb=a0f387467691292fe62c66e56fbc8476c7ecbb2d;hp=f3fb896a3d7b210ed6d283c3e310190b48849564;hpb=3824f7350251d4d10a794b6b9390333dbe567c57;p=nagiosplug.git diff --git a/NPTest.pm b/NPTest.pm index f3fb896..1372d14 100644 --- a/NPTest.pm +++ b/NPTest.pm @@ -609,10 +609,13 @@ sub testCmd { 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);