X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=test%2Fuitest.c;h=68b4b8cbd99f7f8c357f9222c368a82e780ddf64;hp=0000505a916dbf90fe997cd5c613402910ce73d1;hb=93a8b3ba793c769a3634e56642dac55a8d44023f;hpb=4afc60605abcf1ac8373838c71e94a131d29253e diff --git a/test/uitest.c b/test/uitest.c index 0000505a91..68b4b8cbd9 100644 --- a/test/uitest.c +++ b/test/uitest.c @@ -11,31 +11,11 @@ #include #include #include - -/* - * We know that on VMS, the [.apps] object files are compiled with uppercased - * symbols. We must therefore follow suit, or there will be linking errors. - * Additionally, the VMS build does stdio via a socketpair. - */ -#ifdef __VMS -# pragma names save -# pragma names uppercase, truncated - -# include "../apps/vms_term_sock.h" -#endif - -#include "../apps/apps.h" - -#ifdef __VMS -# pragma names restore -#endif - +#include "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 @@ -111,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; }