+ ok(failed == 0 && session_list_count() == 0,
+ "Large sessions number: destroyed %u sessions",
+ MAX_SESSIONS);
+}
+
+int main(int argc, char **argv)
+{
+ struct lttng_thread *ht_cleanup_thread;
+
+ plan_tests(NUM_TESTS);
+
+ health_sessiond = health_app_create(NR_HEALTH_SESSIOND_TYPES);
+ ht_cleanup_thread = launch_ht_cleanup_thread();
+ assert(ht_cleanup_thread);
+ lttng_thread_put(ht_cleanup_thread);
+
+ diag("Sessions unit tests");
+
+ rcu_register_thread();
+
+ test_session_list();
+
+ test_create_one_session();
+
+ test_validate_session();
+
+ test_destroy_session();
+
+ test_duplicate_session();
+
+ empty_session_list();
+
+ test_session_name_generation();
+
+ test_large_session_number();
+
+ rcu_unregister_thread();
+ lttng_thread_list_shutdown_orphans();