From: des Date: Fri, 29 Jun 2007 14:05:21 +0000 (+0000) Subject: Add an usleep() method based on select(). X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d07796be85c0d4b73ff645668e9c809ac53c27a2;p=varnish Add an usleep() method based on select(). git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1602 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-tools/regress/lib/Varnish/Test/Case.pm b/varnish-tools/regress/lib/Varnish/Test/Case.pm index 22868ac1..5cf25192 100644 --- a/varnish-tools/regress/lib/Varnish/Test/Case.pm +++ b/varnish-tools/regress/lib/Varnish/Test/Case.pm @@ -188,4 +188,10 @@ sub ev_client_timeout($$) { return $client; } +sub usleep($$) { + my ($self, $usec) = @_; + + select(undef, undef, undef, $usec / 1000000.0); +} + 1;