Add session configuration load capability to libconfig
[lttng-tools.git] / tests / unit / test_kernel_data.c
index f3687456424cd8af8ff88a99bf317b06c58c429a..e2182e9262bfccf82c94c3dc5a2fcbe854fb30d2 100644 (file)
 
 #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 */
 #define NUM_TESTS 10
 
-/* For lttngerr.h */
+/* For error.h */
 int lttng_opt_quiet = 1;
 int lttng_opt_verbose;
 
@@ -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.023843 seconds and 4 git commands to generate.