diff options
author | Davi Arnaut <davi.arnaut@oracle.com> | 2010-10-20 12:48:19 -0200 |
---|---|---|
committer | Davi Arnaut <davi.arnaut@oracle.com> | 2010-10-20 12:48:19 -0200 |
commit | 785bcc173de480cde88081c9b054ee8de72cd1ad (patch) | |
tree | 8a7eb61812d8e109fee0ee56d3628ea17b919f61 /unittest/mytap/tap.c | |
parent | 7af5094208edac1dd3af9ba2883f3c91264fbf6a (diff) | |
parent | b5bb13ec0380624c2e663a4e9b4b29fe574b3e05 (diff) | |
download | mariadb-git-785bcc173de480cde88081c9b054ee8de72cd1ad.tar.gz |
Merge of mysql-5.1-bugteam into mysql-5.5-bugteam.
Diffstat (limited to 'unittest/mytap/tap.c')
-rw-r--r-- | unittest/mytap/tap.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/unittest/mytap/tap.c b/unittest/mytap/tap.c index 7facb23e7e3..f7a6d881421 100644 --- a/unittest/mytap/tap.c +++ b/unittest/mytap/tap.c @@ -244,6 +244,23 @@ ok(int 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, ...) |