tests: use BT_ASSERT() instead of assert()
[babeltrace.git] / tests / utils / tap / tap.c
index 4d09a58a5e8c2e39835d14dba24a83d249da7ed5..d3d3f3df8a4db955eea39d225f4c9c7ed13a800a 100644 (file)
@@ -29,7 +29,7 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <assert.h>
+#include <babeltrace/assert-internal.h>
 #include <string.h>
 #include <limits.h>
 
@@ -304,7 +304,7 @@ diag_multiline(const char *val)
 {
        size_t len, i, line_start_idx = 0;
 
-       assert(val);
+       BT_ASSERT(val);
        len = strlen(val);
 
        for (i = 0; i < len; i++) {
@@ -314,7 +314,7 @@ diag_multiline(const char *val)
                        continue;
                }
 
-               assert((i - line_start_idx + 1) <= INT_MAX);
+               BT_ASSERT((i - line_start_idx + 1) <= INT_MAX);
                line_length = i - line_start_idx + 1;
                fprintf(stderr, "# %.*s", line_length, &val[line_start_idx]);
                line_start_idx = i + 1;
This page took 0.023379 seconds and 4 git commands to generate.