File: race.patch

package info (click to toggle)
libcache-memcached-perl 1.30-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 184 kB
  • sloc: perl: 1,101; makefile: 3
file content (38 lines) | stat: -rw-r--r-- 990 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Description: fix/skip timing dependent tests
Bug-Debian: https://bugs.debian.org/545626
Forwarded: no
Author: Niko Tyni <ntyni@debian.org>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2012-06-08

--- a/t/05_reconnect_timeout.t
+++ b/t/05_reconnect_timeout.t
@@ -32,6 +32,9 @@
     exit 0;
 }
 
+SKIP: {
+    skip "Skipping network tests for Debian builds", 2 if $ENV{DEBIAN_BUILD};
+
 my $memd = Cache::Memcached->new({
     servers   => [ $testaddr ],
     namespace => "Cache::Memcached::t/$$/" . (time() % 100) . "/",
@@ -48,3 +51,5 @@
 $memd->set("key", "foo");
 my $time3 = Time::HiRes::time();
 ok($time3 - $time2 < .1, "Should return fast on retry");
+
+} # SKIP
--- a/t/100_flush_bug.t
+++ b/t/100_flush_bug.t
@@ -54,6 +54,10 @@
 # give the forked server a chance to startup
 sleep 1;
 
+# wait for the child to get the server ready
+# see http://bugs.debian.org/545626
+sleep 1;
+
 my $memd = Cache::Memcached->new({ servers   => [ $testaddr ] });
 
 for (@res) {