X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Funit%2Ftest_session.c;h=03e6b91611ad0732fa82faf0c386c252cf0ca4c5;hb=5b9f4c239e3b7f7c4909ee25ce1e6b464fad738f;hp=f2343c9916bd5636a455807616b549cfc1e56811;hpb=a295449d182c0c89c1c2b3ba2a18519b547f6486;p=lttng-tools.git diff --git a/tests/unit/test_session.c b/tests/unit/test_session.c index f2343c991..03e6b9161 100644 --- a/tests/unit/test_session.c +++ b/tests/unit/test_session.c @@ -24,6 +24,7 @@ #include #include #include +#include #include @@ -302,6 +303,8 @@ int main(int argc, char **argv) diag("Sessions unit tests"); + rcu_register_thread(); + test_session_list(); test_create_one_session(); @@ -318,6 +321,7 @@ int main(int argc, char **argv) test_large_session_number(); + rcu_unregister_thread(); assert(!fini_ht_cleanup_thread(&ht_cleanup_thread)); return exit_status();