X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Funit%2Ftest_kernel_data.c;h=0b4bb08c948c4ac375ef9765b94705aef5ccfa24;hb=c1e91a72b549afc9e7fe904b7ef9c1b670cfa775;hp=1359b7fa8d97386253ac6b4bb7a22f80e095acb9;hpb=23aaa19ea72d88958ee24cdc8b5b9e3125c31d93;p=lttng-tools.git diff --git a/tests/unit/test_kernel_data.c b/tests/unit/test_kernel_data.c index 1359b7fa8..0b4bb08c9 100644 --- a/tests/unit/test_kernel_data.c +++ b/tests/unit/test_kernel_data.c @@ -30,9 +30,6 @@ #include -/* 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 */ @@ -42,6 +39,9 @@ int lttng_opt_quiet = 1; int lttng_opt_verbose; +int ust_consumerd32_fd; +int ust_consumerd64_fd; + static const char alphanum[] = "0123456789" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" @@ -69,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 && @@ -100,9 +100,9 @@ static void test_create_kernel_metadata(void) kern->metadata->conf->attr.num_subbuf == DEFAULT_METADATA_SUBBUF_NUM && kern->metadata->conf->attr.switch_timer_interval - == DEFAULT_CHANNEL_SWITCH_TIMER && + == DEFAULT_KERNEL_CHANNEL_SWITCH_TIMER && kern->metadata->conf->attr.read_timer_interval - == DEFAULT_CHANNEL_READ_TIMER && + == DEFAULT_KERNEL_CHANNEL_READ_TIMER && kern->metadata->conf->attr.output == DEFAULT_KERNEL_CHANNEL_OUTPUT, "Validate kernel session metadata"); @@ -174,10 +174,10 @@ static void test_create_kernel_stream(void) int main(int argc, char **argv) { - diag("Kernel data structure unit test"); - plan_tests(NUM_TESTS); + diag("Kernel data structure unit test"); + test_create_one_kernel_session(); test_create_kernel_metadata(); test_create_kernel_channel();