X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Ftools%2Ftest_sessions.c;fp=tests%2Ftools%2Ftest_sessions.c;h=a6d76c73df49a96a8300f4ca3834811e9d87c441;hp=efe19ecdc08cd516aff7426277e21bef11eb7c88;hb=0525e9ae15d215943d8187e7f190d5a45e723085;hpb=e7fe706f887aa4d753b102a610f802f7dd816655 diff --git a/tests/tools/test_sessions.c b/tests/tools/test_sessions.c index efe19ecdc..a6d76c73d 100644 --- a/tests/tools/test_sessions.c +++ b/tests/tools/test_sessions.c @@ -203,22 +203,6 @@ static int fuzzing_create_args(void) return 0; } -static int fuzzing_destroy_args(void) -{ - int ret; - - ret = destroy_one_session(NULL); - if (ret > 0) { - printf("Session destroyed with (null)\n"); - return -1; - } - - /* Session list must be 0 */ - assert(!session_list_count()); - - return 0; -} - /* * This test is supposed to fail at the second create call. If so, return 0 for * test success, else -1. @@ -307,14 +291,6 @@ int main(int argc, char **argv) } PRINT_OK(); - printf("Fuzzing destroy_session argument: "); - fflush(stdout); - ret = fuzzing_destroy_args(); - if (ret < 0) { - return -1; - } - PRINT_OK(); - printf("Creating %d sessions: ", MAX_SESSIONS); fflush(stdout); for (i = 0; i < MAX_SESSIONS; i++) {