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-8859.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/cscodec-8859.c') diff --git a/test/cscodec-8859.c b/test/cscodec-8859.c index 7fd5a2f..bd7dfa4 100644 --- a/test/cscodec-8859.c +++ b/test/cscodec-8859.c @@ -42,15 +42,15 @@ 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; } 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') -- cgit v1.2.3