From: Mathieu Desnoyers Date: Tue, 10 Apr 2012 21:39:40 +0000 (-0400) Subject: Fix tests: add missing session2 destroy X-Git-Tag: v2.1.0-rc1~153 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=88402ab64de4d6060532853322c41af0eb45a396;p=lttng-tools.git Fix tests: add missing session2 destroy Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/ust/ust_global_event_basic.c b/tests/ust/ust_global_event_basic.c index 6f116969f..ad14afbb3 100644 --- a/tests/ust/ust_global_event_basic.c +++ b/tests/ust/ust_global_event_basic.c @@ -268,6 +268,12 @@ int main(int argc, char **argv) } PRINT_OK(); + printf("Destroy tracing session 2: "); + if ((ret = lttng_destroy_session(session_name2)) < 0) { + printf("error destroying session 2: %s\n", lttng_strerror(ret)); + } + PRINT_OK(); + printf("Destroy tracing session: "); if ((ret = lttng_destroy_session(session_name)) < 0) { printf("error destroying session: %s\n", lttng_strerror(ret)); @@ -285,6 +291,7 @@ stop_fail: start_fail: context_fail: enable_fail: + lttng_destroy_session(session_name2); lttng_destroy_session(session_name); lttng_destroy_handle(handle);