summaryrefslogtreecommitdiff
path: root/unittest/mytap/tap.c
diff options
context:
space:
mode:
authorBjorn Munch <bjorn.munch@oracle.com>2010-12-20 12:58:33 +0100
committerBjorn Munch <bjorn.munch@oracle.com>2010-12-20 12:58:33 +0100
commitde83ad9073154e352201ddae0649bab0fd16689d (patch)
tree2fe3426f72edd431023880069cd890d273c7f800 /unittest/mytap/tap.c
parent154279419d7bf6f1c7e1a630ed22dc1ba0aad5b6 (diff)
parent13c6af0eab384632e3cb954e5ba7d7c51d537d4f (diff)
downloadmariadb-git-de83ad9073154e352201ddae0649bab0fd16689d.tar.gz
new merge from 5.1
Diffstat (limited to 'unittest/mytap/tap.c')
-rw-r--r--unittest/mytap/tap.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/unittest/mytap/tap.c b/unittest/mytap/tap.c
index a5831f2b71d..2566d90c4b0 100644
--- a/unittest/mytap/tap.c
+++ b/unittest/mytap/tap.c
@@ -223,6 +223,23 @@ ok(int const pass, char const *fmt, ...)
emit_endl();
}
+void
+ok1(int const pass)
+{
+ va_list ap;
+
+ memset(&ap, 0, sizeof(ap));
+
+ if (!pass && *g_test.todo == '\0')
+ ++g_test.failed;
+
+ vemit_tap(pass, NULL, ap);
+
+ if (*g_test.todo != '\0')
+ emit_dir("todo", g_test.todo);
+
+ emit_endl();
+}
void
skip(int how_many, char const *fmt, ...)