#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"
* test_comment -- a comment to print afterwards, may be NULL
*/
unsigned int
-_gen_result(int ok, const char *func, char *file, unsigned int line,
- char *test_name, ...)
+_gen_result(int ok, const char *func, const char *file, unsigned int line,
+ const char *test_name, ...)
{
va_list ap;
char *local_test_name = NULL;
* Note that the plan is to skip all tests
*/
int
-plan_skip_all(char *reason)
+plan_skip_all(const char *reason)
{
LOCK;
}
unsigned int
-diag(char *fmt, ...)
+diag(const char *fmt, ...)
{
va_list ap;
{
size_t len, i, line_start_idx = 0;
- BT_ASSERT(val);
+ assert(val);
len = strlen(val);
for (i = 0; i < len; i++) {
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;
}
int
-skip(unsigned int n, char *fmt, ...)
+skip(unsigned int n, const char *fmt, ...)
{
va_list ap;
char *skip_msg = NULL;
}
void
-todo_start(char *fmt, ...)
+todo_start(const char *fmt, ...)
{
va_list ap;