From 1154ed7ffffa15e4ff5317259feaa487581ef999 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 4 Dec 2010 19:26:41 +0000 Subject: Remove Aliases file from test harnesses svn path=/trunk/libparserutils/; revision=10979 --- test/cscodec-utf8.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/cscodec-utf8.c') diff --git a/test/cscodec-utf8.c b/test/cscodec-utf8.c index b0dcb89..c36961e 100644 --- a/test/cscodec-utf8.c +++ b/test/cscodec-utf8.c @@ -40,8 +40,8 @@ int main(int argc, char **argv) parserutils_charset_codec *codec; line_ctx ctx; - if (argc != 3) { - printf("Usage: %s \n", argv[0]); + if (argc != 2) { + printf("Usage: %s \n", argv[0]); return 1; } @@ -51,7 +51,7 @@ int main(int argc, char **argv) assert(parserutils_charset_codec_create("UTF-8", myrealloc, NULL, &ctx.codec) == PARSERUTILS_OK); - 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') -- cgit v1.2.3