Fix tests: add missing session2 destroy
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 10 Apr 2012 21:39:40 +0000 (17:39 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 10 Apr 2012 21:39:40 +0000 (17:39 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/ust/ust_global_event_basic.c

index 6f116969f554add2c0ed0116ac9b86d68f976cc1..ad14afbb358a42f50dd911b44c9a04ce4b94e5f4 100644 (file)
@@ -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);
 
This page took 0.025859 seconds and 4 git commands to generate.