summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-12-28 15:07:52 +0000
committerjsing <jsing@openbsd.org>2014-12-28 15:07:52 +0000
commit859b581454794544da3ce409ef4f0c36c5b0f1a7 (patch)
tree3e1666e4f47a190243c9222c123cba8a857dc4a6
parentOnly accept a single unnamed argument - the existing behaviour is to (diff)
downloadwireguard-openbsd-859b581454794544da3ce409ef4f0c36c5b0f1a7.tar.xz
wireguard-openbsd-859b581454794544da3ce409ef4f0c36c5b0f1a7.zip
Update regress to match change in unnamed argument handling.
-rw-r--r--regress/usr.bin/openssl/options/optionstest.c11
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. */