diff options
Diffstat (limited to 'unittest/mytap/tap.h')
-rw-r--r-- | unittest/mytap/tap.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/unittest/mytap/tap.h b/unittest/mytap/tap.h index 69b1d1e46c4..535db3e6c6c 100644 --- a/unittest/mytap/tap.h +++ b/unittest/mytap/tap.h @@ -121,8 +121,8 @@ void plan(int count); @endcode @param pass Zero if the test failed, non-zero if it passed. - @param fmt Format string in printf() format. NULL is allowed, in - which case nothing is printed. + @param fmt Format string in printf() format. NULL is not allowed, + use ok1() in this case. */ void ok(int pass, char const *fmt, ...) @@ -130,6 +130,17 @@ void ok(int pass, char const *fmt, ...) /** + Report test result as a TAP line. + + Same as ok() but does not take a message to be printed. + + @param pass Zero if the test failed, non-zero if it passed. +*/ + +void ok1(int const pass); + + +/** Skip a determined number of tests. Function to print that <em>how_many</em> tests have been skipped. |