static char *todo_msg_fixed = "libtap malloc issue";
static int todo = 0;
static int test_died = 0;
+static int tap_is_disabled = 0;
/* Encapsulate the pthread code in a conditional. In the absence of
libpthread the code does nothing */
return 0;
}
+unsigned int
+rdiag_start(void)
+{
+ fputs("# ", stderr);
+ return 0;
+}
+
+unsigned int
+rdiag(char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+ vfprintf(stderr, fmt, ap);
+ va_end(ap);
+
+ return 0;
+}
+
+unsigned int
+rdiag_end(void)
+{
+ fputs("\n", stderr);
+ return 0;
+}
+
void
_expected_tests(unsigned int tests)
{
LOCK;
+ if (tap_is_disabled) {
+ UNLOCK;
+ return;
+ }
+
/* If plan_no_plan() wasn't called, and we don't have a plan,
and we're not skipping everything, then something happened
before we could produce any output */
UNLOCK;
}
+
+/* Disable tap for this process. */
+void
+tap_disable(void)
+{
+ LOCK;
+ tap_is_disabled = 1;
+ UNLOCK;
+}