]> git.notmuchmail.org Git - notmuch/commitdiff
test: fix an evident copy-paste error in argument parsing test
authorJani Nikula <jani@nikula.org>
Mon, 3 Dec 2012 22:54:52 +0000 (00:54 +0200)
committerDavid Bremner <bremner@debian.org>
Tue, 4 Dec 2012 13:07:32 +0000 (09:07 -0400)
test/arg-test.c
test/argument-parsing

index adc56e30e7d97e449a328ed8ff7642b429084b7b..6c49eacd7f3a9bab7537ee82059b6c66a5a76d7a 100644 (file)
@@ -41,7 +41,7 @@ int main(int argc, char **argv){
        printf("positional arg 1 %s\n", pos_arg1);
 
     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 ++) {
index 672de0b306696afeda8a7ba6751b64a8ddbd9d0d..94e90874d2e0e422c433e0601b9e88f0342a618e 100755 (executable)
@@ -9,7 +9,7 @@ keyword 1
 int 7
 string foo
 positional arg 1 pos1
-positional arg 2 pos1
+positional arg 2 pos2
 EOF
 test_expect_equal_file OUTPUT EXPECTED