]> err.no Git - varnish/commitdiff
Add an usleep() method based on select().
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 29 Jun 2007 14:05:21 +0000 (14:05 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 29 Jun 2007 14:05:21 +0000 (14:05 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1602 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-tools/regress/lib/Varnish/Test/Case.pm

index 22868ac15403ec6b5b16dc4f7ff3c33ea967dcbe..5cf251926568ae45e58e532c8efb015d87e17f08 100644 (file)
@@ -188,4 +188,10 @@ sub ev_client_timeout($$) {
     return $client;
 }
 
+sub usleep($$) {
+    my ($self, $usec) = @_;
+
+    select(undef, undef, undef, $usec / 1000000.0);
+}
+
 1;