Re-implement BT_ASSERT without using the assert macro
[babeltrace.git] / tests / utils / tap / tap.c
index d3d3f3df8a4db955eea39d225f4c9c7ed13a800a..5699f387015b9610abda9ec75bd170929492bf97 100644 (file)
@@ -29,9 +29,9 @@
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <babeltrace/assert-internal.h>
 #include <string.h>
 #include <limits.h>
+#include <assert.h>
 
 #include "tap.h"
 
@@ -304,7 +304,7 @@ diag_multiline(const char *val)
 {
        size_t len, i, line_start_idx = 0;
 
-       BT_ASSERT(val);
+       assert(val);
        len = strlen(val);
 
        for (i = 0; i < len; i++) {
@@ -314,7 +314,7 @@ diag_multiline(const char *val)
                        continue;
                }
 
-               BT_ASSERT((i - line_start_idx + 1) <= INT_MAX);
+               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.023002 seconds and 4 git commands to generate.