[PATCH] test: fix an evident copy-paste error in argument parsing test
Austin Clements
aclements at csail.mit.edu
Mon Dec 3 15:15:58 PST 2012
On Mon, 03 Dec 2012, Jani Nikula <jani at nikula.org> wrote:
> ---
> test/arg-test.c | 2 +-
> test/argument-parsing | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/test/arg-test.c b/test/arg-test.c
> index adc56e3..6c49eac 100644
> --- a/test/arg-test.c
> +++ b/test/arg-test.c
> @@ -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 ++) {
> diff --git a/test/argument-parsing b/test/argument-parsing
> index 672de0b..94e9087 100755
> --- a/test/argument-parsing
> +++ b/test/argument-parsing
> @@ -9,7 +9,7 @@ keyword 1
> int 7
> string foo
> positional arg 1 pos1
> -positional arg 2 pos1
> +positional arg 2 pos2
Someone obviously didn't check their test output.
> EOF
> test_expect_equal_file OUTPUT EXPECTED
>
LGTM.
More information about the notmuch
mailing list