test: fix an evident copy-paste error in argument parsing test

This commit is contained in:
Jani Nikula 2012-12-04 00:54:52 +02:00 committed by David Bremner
parent bd918e35d4
commit 7f54db1f04
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ int main(int argc, char **argv){
printf("positional arg 1 %s\n", pos_arg1); printf("positional arg 1 %s\n", pos_arg1);
if (pos_arg2) if (pos_arg2)
printf("positional arg 2 %s\n", pos_arg1); printf("positional arg 2 %s\n", pos_arg2);
for ( ; opt_index < argc ; opt_index ++) { for ( ; opt_index < argc ; opt_index ++) {

View file

@ -9,7 +9,7 @@ keyword 1
int 7 int 7
string foo string foo
positional arg 1 pos1 positional arg 1 pos1
positional arg 2 pos1 positional arg 2 pos2
EOF EOF
test_expect_equal_file OUTPUT EXPECTED test_expect_equal_file OUTPUT EXPECTED