We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64919aa commit 5798ca5Copy full SHA for 5798ca5
src/test/perl/TestLib.pm
@@ -375,9 +375,29 @@ sub system_or_bail
375
{
376
if (system_log(@_) != 0)
377
378
- BAIL_OUT("system $_[0] failed");
+ if ($? == -1)
379
+ {
380
+ BAIL_OUT(
381
+ sprintf(
382
+ "failed to execute command \"%s\": $!", join(" ", @_)));
383
+ }
384
+ elsif ($? & 127)
385
386
387
388
+ "command \"%s\" died with signal %d",
389
+ join(" ", @_),
390
+ $? & 127));
391
392
+ else
393
394
395
396
+ "command \"%s\" exited with value %d",
397
398
+ $? >> 8));
399
400
}
- return;
401
402
403
=pod
0 commit comments