Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git] / tests / unit / test_utils_parse_time_suffix.c
index 09708edd03e913ec13d57c5492649c9669a5e281..95aac5561d13edca8091359357c723c24db6a9d7 100644 (file)
@@ -5,7 +5,6 @@
  *
  */
 
-#include <assert.h>
 #include <string.h>
 #include <stdio.h>
 #include <inttypes.h>
@@ -20,7 +19,7 @@ int lttng_opt_verbose = 3;
 int lttng_opt_mi;
 
 struct valid_test_input {
-       char *input;
+       const char *input;
        uint64_t expected_result;
 };
 
@@ -56,7 +55,7 @@ static struct valid_test_input valid_tests_inputs[] = {
 static const int num_valid_tests = sizeof(valid_tests_inputs) / sizeof(valid_tests_inputs[0]);
 
 /* Invalid test cases */
-static char *invalid_tests_inputs[] = {
+static const char *invalid_tests_inputs[] = {
                "",
                " ",
                "-1",
This page took 0.024727 seconds and 4 git commands to generate.