tests: Fix test error on 32-bit system
This commit is contained in:
parent
c58f8e546d
commit
a416891454
|
@ -3499,7 +3499,8 @@ void test_nghttp2_session_set_option(void)
|
||||||
NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS,
|
NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS,
|
||||||
&sszval, sizeof(sszval)));
|
&sszval, sizeof(sszval)));
|
||||||
CU_ASSERT(sszval ==
|
CU_ASSERT(sszval ==
|
||||||
session->remote_settings[NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS]);
|
(ssize_t)session->
|
||||||
|
remote_settings[NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS]);
|
||||||
|
|
||||||
sszval = 0;
|
sszval = 0;
|
||||||
CU_ASSERT(NGHTTP2_ERR_INVALID_ARGUMENT ==
|
CU_ASSERT(NGHTTP2_ERR_INVALID_ARGUMENT ==
|
||||||
|
@ -3508,12 +3509,12 @@ void test_nghttp2_session_set_option(void)
|
||||||
NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS,
|
NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS,
|
||||||
&sszval, sizeof(sszval)));
|
&sszval, sizeof(sszval)));
|
||||||
|
|
||||||
intval = 100;
|
charval = 100;
|
||||||
CU_ASSERT(NGHTTP2_ERR_INVALID_ARGUMENT ==
|
CU_ASSERT(NGHTTP2_ERR_INVALID_ARGUMENT ==
|
||||||
nghttp2_session_set_option
|
nghttp2_session_set_option
|
||||||
(session,
|
(session,
|
||||||
NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS,
|
NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS,
|
||||||
&intval, sizeof(intval)));
|
&charval, sizeof(charval)));
|
||||||
|
|
||||||
nghttp2_session_del(session);
|
nghttp2_session_del(session);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue