Commit to help ldns test.

git-svn-id: file:///svn/unbound/trunk@248 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2007-04-18 08:50:44 +00:00
parent 3507ec2e64
commit 6ef0188400
3 changed files with 8 additions and 1 deletions
+2
View File
@@ -211,11 +211,13 @@ main(int argc, char* argv[])
}
printf("Start of %s unit test.\n", PACKAGE_STRING);
checklock_start();
/*
net_test();
alloc_test();
msgreply_test();
lruhash_test();
slabhash_test();
*/
msgparse_test();
checklock_stop();
printf("%d tests succeeded\n", testcount);
+4 -1
View File
@@ -298,7 +298,10 @@ testfromfile(ldns_buffer* pkt, struct alloc_cache* alloc, ldns_buffer* out,
continue;
if(strlen(buf) < 10) /* skip pcat line numbers. */
continue;
if(0) printf("test no %d\n", no);
if(0) {
printf("test no %d: %s", no, buf);
fflush(stdout);
}
testpkt(pkt, alloc, out, buf);
no++;
}