tests: Make test_per_application_leaks more robust
[lttng-tools.git] / tests / regression / tools / health / health_stall.c
index e89966315446eff2b835d9a4338bef2a955b9088..c88e5742a30b08ec6cac328e0ff5de742986a9c1 100644 (file)
@@ -7,9 +7,10 @@
  */
 
 #include <lttng/lttng-export.h>
+
+#include <pthread.h>
 #include <stdlib.h>
 #include <string.h>
-#include <pthread.h>
 #include <unistd.h>
 #include <urcu.h>
 
@@ -19,8 +20,7 @@
  * Check if the specified environment variable is set.
  * Return 1 if set, otherwise 0.
  */
-static
-int check_env_var(const char *env)
+static int check_env_var(const char *env)
 {
        if (env) {
                char *env_val = getenv(env);
@@ -32,8 +32,7 @@ int check_env_var(const char *env)
        return 0;
 }
 
-static
-void do_stall(void)
+static void do_stall(void)
 {
        unsigned int sleep_time = STALL_TIME;
 
@@ -104,18 +103,6 @@ int __testpoint_sessiond_thread_manage_consumer(void)
        return 0;
 }
 
-LTTNG_EXPORT int __testpoint_sessiond_thread_ht_cleanup(void);
-int __testpoint_sessiond_thread_ht_cleanup(void)
-{
-       const char *var = "LTTNG_SESSIOND_THREAD_HT_CLEANUP_STALL";
-
-       if (check_env_var(var)) {
-               do_stall();
-       }
-
-       return 0;
-}
-
 LTTNG_EXPORT int __testpoint_sessiond_thread_app_manage_notify(void);
 int __testpoint_sessiond_thread_app_manage_notify(void)
 {
This page took 0.024347 seconds and 4 git commands to generate.