test/https: fix ssl dirty bypass for https_simple

Tests:
- http/https_simple_dirty # not affected, since dirty is the default
- http/https_simple       # affected

v2: fix compilation with -DEVENT__DISABLE_OPENSSL=ON
This commit is contained in:
Azat Khuzhin 2016-11-19 17:53:38 +03:00
parent 45247e6fd9
commit cfe2ab22f2

View File

@ -3607,6 +3607,10 @@ http_simple_test_impl(void *arg, int ssl, int dirty)
test_ok = 0;
bev = create_bev(data->base, -1, ssl);
#ifdef EVENT__HAVE_OPENSSL
bufferevent_openssl_set_allow_dirty_shutdown(bev, dirty);
#endif
evcon = evhttp_connection_base_bufferevent_new(
data->base, NULL, bev, "127.0.0.1", hs.port);
tt_assert(evcon);