Skip to contentSkip to conversation

Fix: set UST register timeout to -1 as test default

PATCH Jérémie Galarneau 1 participant 1 message Apr 29, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Merged in master, 2.6 and 2.5.

Thanks!
Jérémie

Quoted 29 lines · Mathieu Desnoyers

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.

---
 tests/utils/utils.sh | 5 +++++
 1 file changed, 5 insertions(+)
tests/utils/utils.sh +5 -1
index c3d8bd4..5f86ece 100644
@@ -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 ()
--

2.1.4

Signature · 3 lines
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev