X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Funit%2Ftest_kernel_data.c;h=f3687456424cd8af8ff88a99bf317b06c58c429a;hb=e3bef7256ce348cf232ede3f36721e661cfda2a7;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..f36874564 100644 --- a/tests/unit/test_kernel_data.c +++ b/tests/unit/test_kernel_data.c @@ -42,6 +42,9 @@ int lttng_opt_quiet = 1; int lttng_opt_verbose; +int ust_consumerd32_fd; +int ust_consumerd64_fd; + static const char alphanum[] = "0123456789" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" @@ -100,9 +103,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 +177,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();