Tests: Fix first line of output to follow TAP guidelines
[lttng-tools.git] / tests / unit / test_kernel_data.c
index 1359b7fa8d97386253ac6b4bb7a22f80e095acb9..f3687456424cd8af8ff88a99bf317b06c58c429a 100644 (file)
@@ -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();
This page took 0.024198 seconds and 4 git commands to generate.