summaryrefslogtreecommitdiff
path: root/unittest/examples/todo.t.c
diff options
context:
space:
mode:
Diffstat (limited to 'unittest/examples/todo.t.c')
-rw-r--r--unittest/examples/todo.t.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/unittest/examples/todo.t.c b/unittest/examples/todo.t.c
new file mode 100644
index 00000000000..13a0c950b54
--- /dev/null
+++ b/unittest/examples/todo.t.c
@@ -0,0 +1,19 @@
+
+#include <stdlib.h>
+#include <tap.h>
+
+int main()
+{
+ plan(4);
+ ok(1, NULL);
+ ok(1, NULL);
+ /*
+ Tests in the todo region is expected to fail. If they don't,
+ something is strange.
+ */
+ todo_start("Need to fix these");
+ ok(0, NULL);
+ ok(0, NULL);
+ todo_end();
+ return exit_status();
+}