X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fhealth%2Ftest_thread_exit;h=b4fc73d052a3091a48c78704e800137695bf6469;hp=885ad194182736e147046d6d33c52b69ef3741fd;hb=c2ee6c2ea6a4948a448a2a579c95106aab0249e5;hpb=33c820d6c1f3b742a0028e0219b21e364baade78 diff --git a/tests/regression/tools/health/test_thread_exit b/tests/regression/tools/health/test_thread_exit index 885ad1941..b4fc73d05 100755 --- a/tests/regression/tools/health/test_thread_exit +++ b/tests/regression/tools/health/test_thread_exit @@ -28,8 +28,6 @@ NUM_TESTS=12 source $TESTDIR/utils/utils.sh -print_test_banner "$TEST_DESC" - if [ ! -f "$CURDIR/$SESSIOND_PRELOAD" ]; then BAIL_OUT "libhealthexit.so not available for this test." fi @@ -49,6 +47,8 @@ function test_thread_exit # Spawn sessiond with preload healthexit lib export LD_PRELOAD="$CURDIR/$SESSIOND_PRELOAD" + # Set the socket timeout to 5 so the health check delta is set to 25. + export LTTNG_NETWORK_SOCKET_TIMEOUT=5 start_lttng_sessiond # Cleanup some env. var. @@ -59,7 +59,7 @@ function test_thread_exit $CURDIR/$HEALTH_CHECK_BIN &> /dev/null # Wait - sleep 25 + sleep 30 # Check health status, exit code should indicate failure $CURDIR/$HEALTH_CHECK_BIN &> /dev/null @@ -78,8 +78,11 @@ function test_thread_exit return 1 fi } + plan_tests $NUM_TESTS +print_test_banner "$TEST_DESC" + THREAD=("LTTNG_THREAD_MANAGE_CLIENTS" "LTTNG_THREAD_MANAGE_APPS" "LTTNG_THREAD_REG_APPS")