projects
/
deliverable
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Re-implement BT_ASSERT without using the assert macro
[deliverable/babeltrace.git]
/
tests
/
utils
/
tap
/
tap.c
diff --git
a/tests/utils/tap/tap.c
b/tests/utils/tap/tap.c
index d3d3f3df8a4db955eea39d225f4c9c7ed13a800a..5699f387015b9610abda9ec75bd170929492bf97 100644
(file)
--- a/
tests/utils/tap/tap.c
+++ b/
tests/utils/tap/tap.c
@@
-29,9
+29,9
@@
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
-#include <babeltrace/assert-internal.h>
#include <string.h>
#include <limits.h>
#include <string.h>
#include <limits.h>
+#include <assert.h>
#include "tap.h"
#include "tap.h"
@@
-304,7
+304,7
@@
diag_multiline(const char *val)
{
size_t len, i, line_start_idx = 0;
{
size_t len, i, line_start_idx = 0;
-
BT_ASSERT
(val);
+
assert
(val);
len = strlen(val);
for (i = 0; i < len; i++) {
len = strlen(val);
for (i = 0; i < len; i++) {
@@
-314,7
+314,7
@@
diag_multiline(const char *val)
continue;
}
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;
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.025405 seconds
and
5
git commands to generate.