Browse Source

tap: pass tests after ccanlint changes.

Rusty Russell 16 years ago
parent
commit
ad35219dc2
1 changed files with 9 additions and 9 deletions
  1. 9 9
      ccan/tap/test/run.c

+ 9 - 9
ccan/tap/test/run.c

@@ -2,17 +2,17 @@
  * any output, and change stdout and stderr to use that.
  * any output, and change stdout and stderr to use that.
  *
  *
  * Since we don't use libtap for output, this looks like one big test. */
  * Since we don't use libtap for output, this looks like one big test. */
-#include "tap/tap.h"
+#include <ccan/tap/tap.h>
+#include <ccan/tap/tap.c>
 #include <stdio.h>
 #include <stdio.h>
-#include <unistd.h>
-#include <stdarg.h>
+#include <limits.h>
 #include <err.h>
 #include <err.h>
 #include <string.h>
 #include <string.h>
-#include <stdlib.h>
-#include <limits.h>
 #include <stdbool.h>
 #include <stdbool.h>
 #include <fnmatch.h>
 #include <fnmatch.h>
 
 
+
+
 /* We dup stderr to here. */
 /* We dup stderr to here. */
 static int stderrfd;
 static int stderrfd;
 
 
@@ -90,21 +90,21 @@ int main(int argc, char *argv[])
 
 
 	ok(0, "msg2");
 	ok(0, "msg2");
 	expect(p[0], "not ok 2 - msg2\n"
 	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);
 	ok1(true);
 	expect(p[0], "ok 3 - true\n");
 	expect(p[0], "ok 3 - true\n");
 
 
 	ok1(false);
 	ok1(false);
  	expect(p[0], "not ok 4 - false\n"
  	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");
 	pass("passed");
  	expect(p[0], "ok 5 - passed\n");
  	expect(p[0], "ok 5 - passed\n");
 
 
 	fail("failed");
 	fail("failed");
  	expect(p[0], "not ok 6 - failed\n"
  	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");
 	skip(2, "skipping %s", "test");
  	expect(p[0], "ok 7 # skip skipping test\n"
  	expect(p[0], "ok 7 # skip skipping test\n"
@@ -113,7 +113,7 @@ int main(int argc, char *argv[])
 	todo_start("todo");
 	todo_start("todo");
 	ok1(false);
 	ok1(false);
 	expect(p[0], "not ok 9 - false # TODO todo\n"
 	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);
 	ok1(true);
 	expect(p[0], "ok 10 - true # TODO todo\n");
 	expect(p[0], "ok 10 - true # TODO todo\n");
 	todo_end();
 	todo_end();