summaryrefslogtreecommitdiff
path: root/test/lex-auto.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/lex-auto.c')
-rw-r--r--test/lex-auto.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lex-auto.c b/test/lex-auto.c
index 08d84c6..d1378fe 100644
--- a/test/lex-auto.c
+++ b/test/lex-auto.c
@@ -53,12 +53,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;
@@ -77,7 +77,7 @@ int main(int argc, char **argv)
ctx.indata = 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)