summaryrefslogtreecommitdiff
path: root/test/cscodec-ext8.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-12-04 19:26:41 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-12-04 19:26:41 +0000
commit1154ed7ffffa15e4ff5317259feaa487581ef999 (patch)
tree3036d1794190480e11c2343f02ffaaf8d67e0ad1 /test/cscodec-ext8.c
parentcf1589716b4e895272f8cfe3e6c7c85de7b863af (diff)
downloadlibparserutils-1154ed7ffffa15e4ff5317259feaa487581ef999.tar.gz
libparserutils-1154ed7ffffa15e4ff5317259feaa487581ef999.tar.bz2
Remove Aliases file from test harnesses
svn path=/trunk/libparserutils/; revision=10979
Diffstat (limited to 'test/cscodec-ext8.c')
-rw-r--r--test/cscodec-ext8.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cscodec-ext8.c b/test/cscodec-ext8.c
index 7fd5a2f..bd7dfa4 100644
--- a/test/cscodec-ext8.c
+++ b/test/cscodec-ext8.c
@@ -42,15 +42,15 @@ int main(int argc, char **argv)
parserutils_charset_codec *codec;
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;
}
assert(parserutils_charset_codec_create("NATS-SEFI-ADD",
myrealloc, NULL, &codec) == PARSERUTILS_BADENCODING);
- ctx.buflen = parse_filesize(argv[2]);
+ ctx.buflen = parse_filesize(argv[1]);
if (ctx.buflen == 0)
return 1;
@@ -73,7 +73,7 @@ int main(int argc, char **argv)
ctx.inexp = false;
ctx.exp_ret = PARSERUTILS_OK;
- 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')