diff options
Diffstat (limited to 'test/parse-auto.c')
-rw-r--r-- | test/parse-auto.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/parse-auto.c b/test/parse-auto.c index 2196a94..e050a08 100644 --- a/test/parse-auto.c +++ b/test/parse-auto.c @@ -92,12 +92,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; @@ -117,7 +117,7 @@ int main(int argc, char **argv) ctx.inerrors = false; ctx.inexp = 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) |