diff options
Diffstat (limited to 'unittest/examples/skip-t.c')
-rw-r--r-- | unittest/examples/skip-t.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/unittest/examples/skip-t.c b/unittest/examples/skip-t.c new file mode 100644 index 00000000000..ef717691700 --- /dev/null +++ b/unittest/examples/skip-t.c @@ -0,0 +1,14 @@ + +#include <tap.h> +#include <stdlib.h> + +int main() { + plan(4); + ok(1, NULL); + ok(1, NULL); + SKIP_BLOCK_IF(1, 2, "Example of skipping a few test points in a test") { + ok(1, NULL); + ok(1, NULL); + } + return exit_status(); +} |