diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-04 19:19:54 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-12-04 19:19:54 +0000 |
commit | e342975b5b34dcbce12536c69fd5df82e013f4ac (patch) | |
tree | 8f6dfddf94eed09d7d083d25dc0ae60b1d9ec196 /test/csdetect.c | |
parent | ef71b3d9674cc97e3a4b8a7cf62ab5ff043a2c77 (diff) | |
download | libhubbub-e342975b5b34dcbce12536c69fd5df82e013f4ac.tar.gz libhubbub-e342975b5b34dcbce12536c69fd5df82e013f4ac.tar.bz2 |
Remove Aliases file from test harnesses
svn path=/trunk/hubbub/; revision=10978
Diffstat (limited to 'test/csdetect.c')
-rw-r--r-- | test/csdetect.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/csdetect.c b/test/csdetect.c index de94852..3f24792 100644 --- a/test/csdetect.c +++ b/test/csdetect.c @@ -29,12 +29,12 @@ int main(int argc, char **argv) { line_ctx ctx; - if (argc != 3) { - printf("Usage: %s <aliases_file> <filename>\n", argv[0]); + if (argc != 2) { + printf("Usage: %s <filename>\n", argv[0]); return 1; } - ctx.buflen = parse_filesize(argv[2]); + ctx.buflen = parse_filesize(argv[1]); if (ctx.buflen == 0) return 1; @@ -51,7 +51,7 @@ int main(int argc, char **argv) ctx.indata = false; ctx.inenc = false; - assert(parse_testfile(argv[2], handle_line, &ctx) == true); + assert(parse_testfile(argv[1], handle_line, &ctx) == true); /* and run final test */ if (ctx.bufused > 0 && ctx.buf[ctx.bufused - 1] == '\n') |