~ubuntu-branches/ubuntu/saucy/clamav/saucy-backports

« back to all changes in this revision

Viewing changes to debian/patches/0003-unit_tests-increment-test-timeout-from-40secs-to-5mi.patch

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-07-15 01:08:10 UTC
  • mfrom: (0.35.47 sid)
  • Revision ID: package-import@ubuntu.com-20140715010810-ru66ek4fun2iseba
Tags: 0.98.4+dfsg-2~ubuntu13.10.1
No-change backport to saucy (LP: #1341962)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From 131182293cbed933fd608761e6854e90bde28403 Mon Sep 17 00:00:00 2001
 
2
From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
 
3
Date: Fri, 25 Apr 2014 22:06:23 +0200
 
4
Subject: unit_tests: increment test-timeout from 40secs to 5mins
 
5
 
 
6
I see now and then that tests on the slower archs (arm*, mips) fail due to
 
7
the timeout restriction. Often a second build even on the same buildd
 
8
succeeds. I think that the buildd is either close to the limit or has
 
9
something else (another sbuild running) going so it does not finish the
 
10
test in 40secs.
 
11
Therefore I raise the bar to a 5 minutes limit. The worst thing that can
 
12
happen is, that it takes more than 4 minutes before an enless loop will
 
13
be detected.
 
14
 
 
15
Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
 
16
---
 
17
 unit_tests/preload_run.sh | 2 +-
 
18
 1 file changed, 1 insertion(+), 1 deletion(-)
 
19
 
 
20
diff --git a/unit_tests/preload_run.sh b/unit_tests/preload_run.sh
 
21
index 8b8c8e3..365b3a8 100755
 
22
--- a/unit_tests/preload_run.sh
 
23
+++ b/unit_tests/preload_run.sh
 
24
@@ -5,5 +5,5 @@
 
25
 ulimit -c 0 || true
 
26
 LD_PRELOAD=$LIBPRELOAD
 
27
 export LD_PRELOAD
 
28
-export CK_DEFAULT_TIMEOUT=40
 
29
+export CK_DEFAULT_TIMEOUT=300
 
30
 exec $@