Skip to content
Snippets Groups Projects
Commit e96f4058 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

The test suite scripts exit with non-zero exit code if unable to run executables.

parent 74304254
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,10 @@ sub run_prg {
print "\n*** run_prg: prg = @prg ***\n";
if ((-x @prg) || (-x $arg[0])) {
my @out = `@prg`;
if ($?) {
my $exitcode = $? >> 8;
die "ERROR: non-zero exit code ($exitcode) received from @prg"
}
print "run_prg: [out]=[@out]\n";
return @out;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment