summaryrefslogtreecommitdiff
path: root/test/unit/sc.c
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2022-05-06 11:28:25 -0700
committerQi Wang <interwq@gwu.edu>2022-05-06 11:28:25 -0700
commit54eaed1d8b56b1aa528be3bdd1877e59c56fa90c (patch)
treee79620e0c00b1f8b6b698fbe74df6bae7d812ae2 /test/unit/sc.c
parentea6b3e973b477b8061e0076bb257dbd7f3faa756 (diff)
parent304c919829f9f340669b61fa64867cfe5dba8021 (diff)
downloadjemalloc-master.tar.gz
Merge branch 'dev'5.3.0master
Diffstat (limited to 'test/unit/sc.c')
-rw-r--r--test/unit/sc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/sc.c b/test/unit/sc.c
index bf51d8e5..d207481c 100644
--- a/test/unit/sc.c
+++ b/test/unit/sc.c
@@ -9,7 +9,7 @@ TEST_BEGIN(test_update_slab_size) {
+ (ZU(tiny->ndelta) << tiny->lg_delta);
size_t pgs_too_big = (tiny_size * BITMAP_MAXBITS + PAGE - 1) / PAGE + 1;
sc_data_update_slab_size(&data, tiny_size, tiny_size, (int)pgs_too_big);
- assert_zu_lt((size_t)tiny->pgs, pgs_too_big, "Allowed excessive pages");
+ expect_zu_lt((size_t)tiny->pgs, pgs_too_big, "Allowed excessive pages");
sc_data_update_slab_size(&data, 1, 10 * PAGE, 1);
for (int i = 0; i < data.nbins; i++) {
@@ -17,9 +17,9 @@ TEST_BEGIN(test_update_slab_size) {
size_t reg_size = (ZU(1) << sc->lg_base)
+ (ZU(sc->ndelta) << sc->lg_delta);
if (reg_size <= PAGE) {
- assert_d_eq(sc->pgs, 1, "Ignored valid page size hint");
+ expect_d_eq(sc->pgs, 1, "Ignored valid page size hint");
} else {
- assert_d_gt(sc->pgs, 1,
+ expect_d_gt(sc->pgs, 1,
"Allowed invalid page size hint");
}
}