diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2014-12-28 15:07:53 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2014-12-28 15:07:53 +0000 |
commit | 6515e2766f40cdb0394e43463b6a55108ccc9bfc (patch) | |
tree | f7c125f6ab0a1144094d9be4b9643a994aaf7835 /regress | |
parent | 02b71739691e51e65d391c1a0a599f7a46e99116 (diff) |
Update regress to match change in unnamed argument handling.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/openssl/options/optionstest.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/regress/usr.bin/openssl/options/optionstest.c b/regress/usr.bin/openssl/options/optionstest.c index adfd49b4152..297cf8506fb 100644 --- a/regress/usr.bin/openssl/options/optionstest.c +++ b/regress/usr.bin/openssl/options/optionstest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: optionstest.c,v 1.2 2014/12/28 14:22:46 jsing Exp $ */ +/* $OpenBSD: optionstest.c,v 1.3 2014/12/28 15:07:52 jsing Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -38,11 +38,13 @@ static struct { static struct option test_options[] = { { .name = "arg", + .argname = "argname", .type = OPTION_ARG, .opt.arg = &test_config.arg, }, { .name = "argfunc", + .argname = "argname", .type = OPTION_ARG_FUNC, .opt.argfunc = argfunc, }, @@ -132,14 +134,11 @@ struct options_test options_tests[] = { .wantflag = 1, }, { - /* Multiple unnamed arguments (retain last). */ + /* Multiple unnamed arguments (should fail). */ .argc = 6, .argv = args5, .type = OPTIONS_TEST_UNNAMED, - .unnamed = "unnamed2", - .want = 0, - .wantarg = "arg", - .wantflag = 1, + .want = 1, }, { /* Function. */ |