summaryrefslogtreecommitdiffstats
path: root/test/danetest.c
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2018-08-16 12:36:01 +1000
committerRichard Levitte <levitte@openssl.org>2019-02-11 15:31:51 +0100
commita43ce58f5569a160272c492c680f2e42d38ec769 (patch)
treeacfaac32bee9b8e5dd832fbb49f95709c3b9741e /test/danetest.c
parent9d5560331d86c6463e965321f774e4eed582ce0b (diff)
Updated test command line parsing to support commmon commands
Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/6975)
Diffstat (limited to 'test/danetest.c')
-rw-r--r--test/danetest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/danetest.c b/test/danetest.c
index 049661854e..26745f908e 100644
--- a/test/danetest.c
+++ b/test/danetest.c
@@ -409,14 +409,14 @@ end:
return ret;
}
+OPT_TEST_DECLARE_USAGE("basedomain CAfile tlsafile\n")
+
int setup_tests(void)
{
if (!TEST_ptr(basedomain = test_get_argument(0))
|| !TEST_ptr(CAfile = test_get_argument(1))
- || !TEST_ptr(tlsafile = test_get_argument(2))) {
- TEST_error("Usage error: danetest basedomain CAfile tlsafile");
+ || !TEST_ptr(tlsafile = test_get_argument(2)))
return 0;
- }
ADD_TEST(run_tlsatest);
return 1;