mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
ci: use ubuntu 22.04 with clang 11 for sanitizers build (#1306)
* ci-tsan-recent: test: fix unused variable in rand test (catched by newer clang) ci: use ubuntu 22.04 with clang 11 for sanitizers build
This commit is contained in:
commit
d32649493a
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -46,12 +46,16 @@ jobs:
|
||||
- COMPILER_CLANG
|
||||
- TEST_EXPORT_STATIC
|
||||
- TEST_EXPORT_SHARED
|
||||
- ASAN
|
||||
- TSAN
|
||||
- UBSAN
|
||||
include:
|
||||
- os: ubuntu-22.04
|
||||
EVENT_MATRIX: OPENSSL_3
|
||||
# use recent ubuntu with recent clang for recent sanitizers
|
||||
- os: ubuntu-22.04
|
||||
EVENT_MATRIX: TSAN
|
||||
- os: ubuntu-22.04
|
||||
EVENT_MATRIX: ASAN
|
||||
- os: ubuntu-22.04
|
||||
EVENT_MATRIX: UBSAN
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2.0.0
|
||||
|
@ -935,7 +935,7 @@ test_evutil_rand(void *arg)
|
||||
char buf1[32];
|
||||
char buf2[32];
|
||||
int counts[256];
|
||||
int i, j, k, n=0;
|
||||
int i, j, k;
|
||||
struct evutil_weakrand_state seed = { 12346789U };
|
||||
|
||||
memset(buf2, 0, sizeof(buf2));
|
||||
@ -956,7 +956,6 @@ test_evutil_rand(void *arg)
|
||||
memset(buf1, 0, sizeof(buf1));
|
||||
evutil_secure_rng_get_bytes(buf1 + startpoint,
|
||||
endpoint-startpoint);
|
||||
n += endpoint - startpoint;
|
||||
for (j=0; j<32; ++j) {
|
||||
if (j >= startpoint && j < endpoint) {
|
||||
buf2[j] |= buf1[j];
|
||||
@ -982,8 +981,6 @@ test_evutil_rand(void *arg)
|
||||
tt_int_op(0, <=, r);
|
||||
tt_int_op(r, <, 9999);
|
||||
}
|
||||
|
||||
/* for (i=0;i<256;++i) { printf("%3d %2d\n", i, counts[i]); } */
|
||||
end:
|
||||
;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user