diff options
Diffstat (limited to 'NPTest.pm')
-rw-r--r-- | NPTest.pm | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |