Fix: tests: register thread for RCU operations.
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 26 Jan 2017 19:53:03 +0000 (14:53 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 14 Feb 2017 20:23:56 +0000 (15:23 -0500)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/unit/test_session.c
tests/unit/test_ust_data.c

index 7c925908d326f18443c3e2184a50a8c430abb723..1e633187f8299c6b9d49af3b9d245384fd9612a9 100644 (file)
@@ -24,6 +24,7 @@
 #include <unistd.h>
 #include <time.h>
 #include <sys/types.h>
+#include <urcu.h>
 
 #include <tap/tap.h>
 
@@ -295,6 +296,8 @@ int main(int argc, char **argv)
 
        diag("Sessions unit tests");
 
+       rcu_register_thread();
+
        test_session_list();
 
        test_create_one_session();
@@ -311,5 +314,7 @@ int main(int argc, char **argv)
 
        test_large_session_number();
 
+       rcu_unregister_thread();
+
        return exit_status();
 }
index cf795cfa0759631867ecf1e22872fa420366a0b2..7996b8e60e7d4e9ce60cea4220e44a357692d6ce 100644 (file)
@@ -23,6 +23,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <time.h>
+#include <urcu.h>
 
 #include <lttng/lttng.h>
 #include <bin/lttng-sessiond/lttng-ust-abi.h>
@@ -257,11 +258,15 @@ int main(int argc, char **argv)
 
        diag("UST data structures unit test");
 
+       rcu_register_thread();
+
        test_create_one_ust_session();
        test_create_ust_channel();
        test_create_ust_event();
        test_create_ust_context();
        test_create_ust_event_exclusion();
 
+       rcu_unregister_thread();
+
        return exit_status();
 }
This page took 0.028151 seconds and 4 git commands to generate.