]> git.pld-linux.org Git - packages/nghttp2.git/blob - nghttp2-test.patch
- new
[packages/nghttp2.git] / nghttp2-test.patch
1 Let test succeed also on 32-bit builds, when sizeof(int) == sizeof(ssize_t)
2 --- nghttp2-master/tests/nghttp2_session_test.c.orig    2013-10-12 10:02:37.000000000 +0200
3 +++ nghttp2-master/tests/nghttp2_session_test.c 2013-10-16 20:24:25.343834489 +0200
4 @@ -3490,12 +3490,12 @@
5               NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS,
6               &sszval, sizeof(sszval)));
7  
8 -  intval = 100;
9 +  charval = 100;
10    CU_ASSERT(NGHTTP2_ERR_INVALID_ARGUMENT ==
11              nghttp2_session_set_option
12              (session,
13               NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS,
14 -             &intval, sizeof(intval)));
15 +             &charval, sizeof(charval)));
16  
17    nghttp2_session_del(session);
18  }
This page took 0.044289 seconds and 3 git commands to generate.