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.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/unittest/examples/todo-t.c b/unittest/examples/todo-t.c
new file mode 100644
index 00000000000..82601bee41c
--- /dev/null
+++ b/unittest/examples/todo-t.c
@@ -0,0 +1,21 @@
+
+#include "my_config.h"
+
+#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();
+}