diff options
author | Richard Levitte <levitte@openssl.org> | 2017-04-18 16:47:11 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-04-24 18:09:01 +0200 |
commit | a9c6d221055c3a85edb23b1364cd60baafed4b9f (patch) | |
tree | 92a20b6afa93ea50ce3567d05b39da42365bc3c5 /test/uitest.c | |
parent | b3e5db40eca1b53fc37a95163feba0da82426142 (diff) | |
download | openssl-a9c6d221055c3a85edb23b1364cd60baafed4b9f.zip openssl-a9c6d221055c3a85edb23b1364cd60baafed4b9f.tar.gz openssl-a9c6d221055c3a85edb23b1364cd60baafed4b9f.tar.bz2 |
Adapt all test programs
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3243)
Diffstat (limited to 'test/uitest.c')
-rw-r--r-- | test/uitest.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/test/uitest.c b/test/uitest.c index 574412d..855dc45 100644 --- a/test/uitest.c +++ b/test/uitest.c @@ -11,22 +11,11 @@ #include <string.h> #include <openssl/opensslconf.h> #include <openssl/err.h> - -/* - * The VMS build does stdio via a socketpair. - */ -#ifdef __VMS -# include "../apps/vms_term_sock.h" -#endif - #include "../apps/apps.h" - #include "testutil.h" -#include "test_main_custom.h" /* apps/apps.c depend on these */ char *default_config_file = NULL; -BIO *bio_err = NULL; #ifndef OPENSSL_NO_UI # include <openssl/ui.h> @@ -102,21 +91,10 @@ static int test_new_ui() #endif -int test_main(int argc, char *argv[]) +void register_tests(void) { - int ret; - - bio_err = dup_bio_err(FORMAT_TEXT); - #ifndef OPENSSL_NO_UI ADD_TEST(test_old); ADD_TEST(test_new_ui); #endif - - ret = run_tests(argv[0]); - - (void)BIO_flush(bio_err); - BIO_free(bio_err); - - return ret; } |