Increase timeout for nptl/tst-robust-fork

Message ID 1486559838-18953-1-git-send-email-tuliom@linux.vnet.ibm.com
State Superseded
Headers

Commit Message

Tulio Magno Quites Machado Filho Feb. 8, 2017, 1:17 p.m. UTC
  Although tst-robust-fork usually completes in less the 20s, there are
some slower machines which may take as long as 23s.
This patch increases the timeout to 35s in order to minimize
intermittent failures on slower machines and under heavy usage.

2017-02-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>

	* nptl/tst-robust-fork.c (TIMEOUT): Set to 35.
---
 nptl/tst-robust-fork.c | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Florian Weimer Feb. 8, 2017, 1:19 p.m. UTC | #1
On 02/08/2017 02:17 PM, Tulio Magno Quites Machado Filho wrote:
> Although tst-robust-fork usually completes in less the 20s, there are
> some slower machines which may take as long as 23s.
> This patch increases the timeout to 35s in order to minimize
> intermittent failures on slower machines and under heavy usage.

Can't you increase TIMEOUTFACTOR on such machines?

Nowadays, it should not scale expected timeouts anymore.

Thanks,
Florian
  
Tulio Magno Quites Machado Filho Feb. 8, 2017, 4:55 p.m. UTC | #2
Florian Weimer <fweimer@redhat.com> writes:

> On 02/08/2017 02:17 PM, Tulio Magno Quites Machado Filho wrote:
>> Although tst-robust-fork usually completes in less the 20s, there are
>> some slower machines which may take as long as 23s.
>> This patch increases the timeout to 35s in order to minimize
>> intermittent failures on slower machines and under heavy usage.
>
> Can't you increase TIMEOUTFACTOR on such machines?

Yes, I can, but this is the only testcase timing out on those machines.
Adjusting the timeout of this testcase will prevent us from having
extra steps or settings to the way we test glibc instead of the usual
configure && make && make check.

Why can't we adjust the timeout of this testcase to avoid those spurious
failures?
  

Patch

diff --git a/nptl/tst-robust-fork.c b/nptl/tst-robust-fork.c
index 4a12ff0..852413b 100644
--- a/nptl/tst-robust-fork.c
+++ b/nptl/tst-robust-fork.c
@@ -25,6 +25,8 @@ 
 #include <support/xunistd.h>
 #include <sys/mman.h>
 
+#define TIMEOUT 35
+
 /* Data shared between processes. */
 struct shared
 {