Tests: move invalid tests in test_utils_expand_path that should be valid
[lttng-tools.git] / tests / unit / test_kernel_data.c
index f3687456424cd8af8ff88a99bf317b06c58c429a..16d4f7b3991de7d980e2689c3a14571e10a1ac63 100644 (file)
@@ -30,9 +30,6 @@
 
 #include <tap/tap.h>
 
-/* This path will NEVER be created in this test */
-#define PATH1 "/tmp/.test-junk-lttng"
-
 #define RANDOM_STRING_LEN      11
 
 /* Number of TAP tests in this file */
@@ -72,7 +69,7 @@ static char *get_random_string(void)
 
 static void test_create_one_kernel_session(void)
 {
-       kern = trace_kernel_create_session(PATH1);
+       kern = trace_kernel_create_session();
        ok(kern != NULL, "Create kernel session");
 
        ok(kern->fd == -1 &&
@@ -82,9 +79,6 @@ static void test_create_one_kernel_session(void)
           kern->stream_count_global == 0 &&
           kern->metadata == NULL,
           "Validate kernel session");
-
-       /* Init list in order to avoid sefaults from cds_list_del */
-       trace_kernel_destroy_session(kern);
 }
 
 static void test_create_kernel_metadata(void)
This page took 0.023646 seconds and 4 git commands to generate.