summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2020-05-20 00:03:35 +0100
committerPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2020-05-20 00:03:35 +0100
commitc70bc40d3e7dd2b8ae987f34c40134d633af7bd1 (patch)
tree0643d6382035b7140f3c537ccdb2b558a742154b /t
parent4ca623a9318da5c7cd683ddf929a4da6b2b4957e (diff)
Add skip() to t/taplib.[hc]
Diffstat (limited to 't')
-rw-r--r--t/taplib.c5
-rw-r--r--t/taplib.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/t/taplib.c b/t/taplib.c
index 066e5b0..23e4ed1 100644
--- a/t/taplib.c
+++ b/t/taplib.c
@@ -32,6 +32,11 @@ void fail(char *name)
_exit_status = 1;
}
+void skip(char *reason)
+{
+ printf("ok %d # %s\n", nexttest++, reason);
+}
+
void ok(int cmp, char *name)
{
if(cmp)
diff --git a/t/taplib.h b/t/taplib.h
index 12b87cc..81ad6af 100644
--- a/t/taplib.h
+++ b/t/taplib.h
@@ -3,6 +3,7 @@ void skip_all(char *reason);
void ok(int cmp, char *name);
void pass(char *name);
void fail(char *name);
+void skip(char *reason);
void diag(char *fmt, ...);
void is_int(int got, int expect, char *name);
void is_ptr(void *got, void *expect, char *name);