Fix: set UST register timeout to -1 as test default
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 28 Apr 2015 14:16:37 +0000 (10:16 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 28 Apr 2015 14:42:03 +0000 (10:42 -0400)
On busy systems, it's possible to spuriously hit the default 3 seconds
timeout for UST registration to sessiond, thus causing tests to be flaky
on those systems.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/utils.sh

index 2510da59371a665b80fa8696d455521a8b2c8701..aea2de87612ea8c0881bcfad5f92da5115ec5214 100644 (file)
@@ -27,6 +27,11 @@ KERNEL_MAJOR_VERSION=2
 KERNEL_MINOR_VERSION=6
 KERNEL_PATCHLEVEL_VERSION=27
 
+# We set the default UST register timeout to "wait forever", so that
+# basic tests don't have to worry about hitting timeouts on busy
+# systems. Specialized tests should test those corner-cases.
+export LTTNG_UST_REGISTER_TIMEOUT=-1
+
 source $TESTDIR/utils/tap/tap.sh
 
 function print_ok ()
This page took 0.025512 seconds and 4 git commands to generate.