Network streaming support
[lttng-tools.git] / tests / tools / test_sessions.c
index e55593561891d2827ba8cb8761e188e31c1d3e92..ce716e8c1a70c85dddda2f3a749be7b65f4b0d82 100644 (file)
@@ -221,6 +221,7 @@ static int fuzzing_destroy_args(void)
 static int two_session_same_name(void)
 {
        int ret;
+       struct ltt_session *sess;
 
        ret = create_one_session(SESSION1, PATH1);
        if (ret < 0) {
@@ -228,8 +229,8 @@ static int two_session_same_name(void)
                return -1;
        }
 
-       ret = create_one_session(SESSION1, PATH1);
-       if (ret < 0) {
+       sess = session_find_by_name(SESSION1);
+       if (sess) {
                /* Success */
                return 0;
        }
This page took 0.024589 seconds and 5 git commands to generate.