Browse Source

Fix tests: path change because they're now run under ccanlint (from their dir)

Rusty Russell 16 years ago
parent
commit
38b07a7f32
3 changed files with 2 additions and 5 deletions
  1. 1 1
      ccan/ccan_tokenizer/test/run.c
  2. 1 1
      ccan/ciniparser/test/run.c
  3. 0 3
      ccan/grab_file/test/run-grab.c

+ 1 - 1
ccan/ccan_tokenizer/test/run.c

@@ -1411,7 +1411,7 @@ static void test_tokenizer(void) {
 	msg_fail:;
 	}
 	
-	test_tokenizer_file("ccan/ccan_tokenizer/test/run.c", &mq);
+	test_tokenizer_file("test/run.c", &mq);
 	
 	while (queue_count(mq)) {
 		struct tok_message msg = dequeue(mq);

+ 1 - 1
ccan/ciniparser/test/run.c

@@ -22,7 +22,7 @@ int main(int argc, char * argv[])
 	double dtmp;
 
 	if (argc < 2)
-		ini_name = "ccan/ciniparser/test/test.ini";
+		ini_name = "test/test.ini";
 	else
 		ini_name = argv[1] ;
 

+ 0 - 3
ccan/grab_file/test/run-grab.c

@@ -19,9 +19,6 @@ main(int argc, char *argv[])
 	struct 		stat st;
 
 	str = grab_file(NULL, "test/run-grab.c", NULL);
-	/* FIXME: run_tests runs us from top level dir.  Kill this */
-	if (!str)
-		str = grab_file(NULL, "ccan/grab_file/test/run-grab.c", NULL);
 	split = strsplit(NULL, str, "\n", NULL);
 	length = strlen(split[0]);
 	ok1(streq(split[0], "/* This is test for grab_file() function"));