Extend test_bitfield coverage
[babeltrace.git] / cli / babeltrace-log.c
index 2ff48ca69e03ce40b409a8b366e335066df05672..d429ceb1d0f0edd8765b8588fb6aac2f95920f17 100644 (file)
@@ -24,7 +24,7 @@
 #include <stdio.h>
 #include <stdbool.h>
 #include <string.h>
-#include <assert.h>
+#include <babeltrace/assert-internal.h>
 #include <babeltrace/babeltrace.h>
 #include <popt.h>
 #include <glib.h>
@@ -96,7 +96,7 @@ int parse_params(int argc, char *argv[], char **output_path,
        }
 
        *output_path = strdup(leftover);
-       assert(*output_path);
+       BT_ASSERT(*output_path);
        goto end;
 
 error:
@@ -122,8 +122,6 @@ int main(int argc, char *argv[])
                "--component",
                "dmesg:src.text.dmesg",
                "--params",
-               "read-from-stdin=yes",
-               "--params",
                NULL, /* no-extract-timestamp=? placeholder */
                "--component",
                "ctf:sink.ctf.fs",
@@ -144,12 +142,12 @@ int main(int argc, char *argv[])
        }
 
        if (no_extract_ts) {
-               bt_argv[7] = "no-extract-timestamp=yes";
+               bt_argv[5] = "no-extract-timestamp=yes";
        } else {
-               bt_argv[7] = "no-extract-timestamp=no";
+               bt_argv[5] = "no-extract-timestamp=no";
        }
 
-       bt_argv[13] = output_path;
+       bt_argv[11] = output_path;
        (void) g_spawn_sync(NULL, bt_argv, NULL,
                G_SPAWN_CHILD_INHERITS_STDIN, NULL, NULL,
                NULL, NULL, &retcode, &error);
This page took 0.024243 seconds and 4 git commands to generate.