]> git.ozlabs.org Git - ccan/blobdiff - ccan/breakpoint/test/run.c
breakpoint: new module.
[ccan] / ccan / breakpoint / test / run.c
diff --git a/ccan/breakpoint/test/run.c b/ccan/breakpoint/test/run.c
new file mode 100644 (file)
index 0000000..b36e9c2
--- /dev/null
@@ -0,0 +1,17 @@
+#include <ccan/breakpoint/breakpoint.h>
+#include <ccan/breakpoint/breakpoint.c>
+#include <ccan/tap/tap.h>
+
+int main(void)
+{
+       /* This is how many tests you plan to run */
+       plan_tests(2);
+
+       breakpoint();
+
+       ok1(breakpoint_initialized);
+       ok1(!breakpoint_under_debug);
+
+       /* This exits depending on whether all tests passed */
+       return exit_status();
+}