diff options
author | okhowang(王沛文) <okhowang@tencent.com> | 2020-09-15 18:15:24 +0800 |
---|---|---|
committer | okhowang(王沛文) <okhowang@tencent.com> | 2020-09-16 10:04:36 +0800 |
commit | 53c6867520ccf4712f569ee2686a1a5b04fd7c8d (patch) | |
tree | 6183e45e78bb7ec104213c6c9f2dcadeb4d469f5 /test | |
parent | 6752070909560bc965d93251c0dfa417a87dc500 (diff) | |
download | libevent-53c6867520ccf4712f569ee2686a1a5b04fd7c8d.tar.gz |
test: fix windows error when mbedtls https
Diffstat (limited to 'test')
-rw-r--r-- | test/regress_http.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/regress_http.c b/test/regress_http.c index 3db4ce59..b952ff47 100644 --- a/test/regress_http.c +++ b/test/regress_http.c @@ -3992,6 +3992,9 @@ http_simple_test_impl(void *arg, int ssl, int dirty, const char *uri) #ifdef EVENT__HAVE_OPENSSL bufferevent_openssl_set_allow_dirty_shutdown(bev, dirty); #endif +#ifdef EVENT__HAVE_MBEDTLS + bufferevent_mbedtls_set_allow_dirty_shutdown(bev, dirty); +#endif evcon = evhttp_connection_base_bufferevent_new( data->base, NULL, bev, "127.0.0.1", hs.port); @@ -5639,10 +5642,10 @@ struct testcase_t http_testcases[] = { struct testcase_t http_iocp_testcases[] = { { "simple", http_simple_test, TT_FORK|TT_NEED_BASE|TT_ENABLE_IOCP, &basic_setup, NULL }, #ifdef EVENT__HAVE_OPENSSL - { "https_simple", https_simple_test, TT_FORK|TT_NEED_BASE|TT_ENABLE_IOCP, &basic_setup, NULL }, + { "https_openssl_simple", https_simple_test, TT_FORK|TT_NEED_BASE|TT_ENABLE_IOCP, &basic_setup, NULL }, #endif #ifdef EVENT__HAVE_MBEDTLS - { "https_simple", https_mbedtls_simple_test, TT_FORK|TT_NEED_BASE|TT_ENABLE_IOCP, &basic_setup, NULL }, + { "https_mbedtls_simple", https_mbedtls_simple_test, TT_FORK|TT_NEED_BASE|TT_ENABLE_IOCP, &mbedtls_setup, NULL }, #endif END_OF_TESTCASES }; |