aboutsummaryrefslogtreecommitdiff
path: root/NPTest.pm
diff options
context:
space:
mode:
Diffstat (limited to 'NPTest.pm')
-rw-r--r--NPTest.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/NPTest.pm b/NPTest.pm
index f3fb896a..1372d142 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);