X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fbin%2Fbomb.pl;h=94f5c8d08135263cd299499c0ccf191f92050a25;hb=7d69efe24f620a8459e3822d646bf2e825669005;hp=b91f0499c68337651af9dce0788fb3598de68916;hpb=238734efd7a190c653631ac2db4624c6761df8ec;p=mkws-moved-to-github.git diff --git a/test/bin/bomb.pl b/test/bin/bomb.pl index b91f049..94f5c8d 100755 --- a/test/bin/bomb.pl +++ b/test/bin/bomb.pl @@ -56,6 +56,9 @@ if ($@) { $SIG{ALRM} = sub { my $pgid = getpgrp(); + warn "Alarm handler got called after $timeout seconds\n"; + warn "Kill now the process group...\n\n"; + # kill process group kill "INT", -$pgid; }; @@ -66,7 +69,7 @@ $SIG{INT} = "IGNORE"; alarm($timeout); system(@system) == 0 - or die "system @system failed: $?"; + or die "system('@system') failed: ?='$?', !='$!', ^E='$^E', ?='$?'"; 1;