diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2018-08-16 04:36:01 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-02-11 15:31:51 +0100 |
commit | a43ce58f5569a160272c492c680f2e42d38ec769 (patch) | |
tree | acfaac32bee9b8e5dd832fbb49f95709c3b9741e /test/x509aux.c | |
parent | Allow the syntax of the .include directive to optionally have '=' (diff) | |
download | openssl-a43ce58f5569a160272c492c680f2e42d38ec769.tar.xz openssl-a43ce58f5569a160272c492c680f2e42d38ec769.zip |
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/x509aux.c')
-rw-r--r-- | test/x509aux.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/x509aux.c b/test/x509aux.c index 4488aa68ca..ec2618d780 100644 --- a/test/x509aux.c +++ b/test/x509aux.c @@ -161,14 +161,13 @@ static int test_certs(int num) return 0; } +OPT_TEST_DECLARE_USAGE("certfile...\n") + int setup_tests(void) { size_t n = test_get_argument_count(); - - if (n == 0) { - TEST_error("usage: %s certfile...", test_get_program_name()); + if (n == 0) return 0; - } ADD_ALL_TESTS(test_certs, (int)n); return 1; |