X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftap%2Ftest%2Frun.c;h=c119e74fd4099726a900e741199d38b7e760fb9f;hp=5af7c2e9a80938f381f20d167cdd6a42d4a591ba;hb=ad35219dc2e2855eb79653b824711ea3bff10dfc;hpb=687cde2a8c561b68f17609b615eb930ea02f5aac diff --git a/ccan/tap/test/run.c b/ccan/tap/test/run.c index 5af7c2e9..c119e74f 100644 --- a/ccan/tap/test/run.c +++ b/ccan/tap/test/run.c @@ -2,17 +2,17 @@ * any output, and change stdout and stderr to use that. * * Since we don't use libtap for output, this looks like one big test. */ -#include "tap/tap.h" +#include +#include #include -#include -#include +#include #include #include -#include -#include #include #include + + /* We dup stderr to here. */ static int stderrfd; @@ -90,21 +90,21 @@ int main(int argc, char *argv[]) ok(0, "msg2"); expect(p[0], "not ok 2 - msg2\n" - "# Failed test (*tap/test/run.c:main() at line 91)\n"); + "# Failed test (*test/run.c:main() at line 91)\n"); ok1(true); expect(p[0], "ok 3 - true\n"); ok1(false); expect(p[0], "not ok 4 - false\n" - "# Failed test (*tap/test/run.c:main() at line 98)\n"); + "# Failed test (*test/run.c:main() at line 98)\n"); pass("passed"); expect(p[0], "ok 5 - passed\n"); fail("failed"); expect(p[0], "not ok 6 - failed\n" - "# Failed test (*tap/test/run.c:main() at line 105)\n"); + "# Failed test (*test/run.c:main() at line 105)\n"); skip(2, "skipping %s", "test"); expect(p[0], "ok 7 # skip skipping test\n" @@ -113,7 +113,7 @@ int main(int argc, char *argv[]) todo_start("todo"); ok1(false); expect(p[0], "not ok 9 - false # TODO todo\n" - "# Failed (TODO) test (*tap/test/run.c:main() at line 114)\n"); + "# Failed (TODO) test (*test/run.c:main() at line 114)\n"); ok1(true); expect(p[0], "ok 10 - true # TODO todo\n"); todo_end();