X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fbin%2Fbomb.pl;h=0f434d013bdcf68a9a19e52523df0061fe2c168e;hb=09bc6df503cbcb0a222a2888294a2294d897d1bb;hp=bcc8ec1107d1f4be2f5360e7f34528d4448ec716;hpb=5a9bf466c4b8c6355b9a84dea21d8a78b95631d2;p=mkws-moved-to-github.git diff --git a/test/bin/bomb.pl b/test/bin/bomb.pl index bcc8ec1..0f434d0 100755 --- a/test/bin/bomb.pl +++ b/test/bin/bomb.pl @@ -1,5 +1,5 @@ #!/usr/bin/perl -# Copyright (c) 2014 IndexData ApS. http://indexdata.com +# Copyright (c) 2014 Index Data ApS. http://indexdata.com # # bomb.pl - wrapper to stop a process after N seconds # @@ -42,10 +42,10 @@ die usage if !@system; # be ignored eval { require BSD::Resource; - setrlimit("RLIMIT_CPU", $timeout, 2*$timeout) or die "Cannot set CPU limit: $!\n"; + BSD::Resource::setrlimit("RLIMIT_CPU", $timeout, 2*$timeout) or die "Cannot set CPU limit: $!\n"; }; if ($@) { - warn "Please install the package BSD::Resource!\n\n$@\n"; + warn "WARNING: things would go more nicely with the BSD::Resource package\n"; }