summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2015-09-15 22:48:42 (GMT)
committerJason Evans <jasone@canonware.com>2015-09-15 22:48:42 (GMT)
commit65b940a3c5b7467d79f757e98aa5ba1810129c3e (patch)
treebb23dd9599d164db5098db21641afb03b50d9b61
parent345c1b0eeeac333c3da8baa46e9b96c3b2aca443 (diff)
downloadjemalloc-65b940a3c5b7467d79f757e98aa5ba1810129c3e.zip
jemalloc-65b940a3c5b7467d79f757e98aa5ba1810129c3e.tar.gz
jemalloc-65b940a3c5b7467d79f757e98aa5ba1810129c3e.tar.bz2
Loosen expected xallocx() results.
Systems that do not support chunk split/merge cannot shrink/grow huge allocations in place.
-rw-r--r--test/integration/xallocx.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/integration/xallocx.c b/test/integration/xallocx.c
index 76c91e9..058e27c 100644
--- a/test/integration/xallocx.c
+++ b/test/integration/xallocx.c
@@ -300,9 +300,9 @@ TEST_BEGIN(test_extra_huge)
assert_zu_eq(xallocx(p, huge2, 0, 0), huge2,
"Unexpected xallocx() behavior");
/* Test size decrease with zero extra. */
- assert_zu_eq(xallocx(p, huge0, 0, 0), huge0,
+ assert_zu_ge(xallocx(p, huge0, 0, 0), huge0,
"Unexpected xallocx() behavior");
- assert_zu_eq(xallocx(p, largemax, 0, 0), huge0,
+ assert_zu_ge(xallocx(p, largemax, 0, 0), huge0,
"Unexpected xallocx() behavior");
assert_zu_eq(xallocx(p, huge2, 0, 0), huge2,
@@ -314,27 +314,27 @@ TEST_BEGIN(test_extra_huge)
"Unexpected xallocx() behavior");
assert_zu_eq(xallocx(p, huge0, huge1 - huge0, 0), huge1,
"Unexpected xallocx() behavior");
- assert_zu_eq(xallocx(p, largemax, huge0 - largemax, 0), huge0,
+ assert_zu_ge(xallocx(p, largemax, huge0 - largemax, 0), huge0,
"Unexpected xallocx() behavior");
- assert_zu_eq(xallocx(p, huge0, 0, 0), huge0,
+ assert_zu_ge(xallocx(p, huge0, 0, 0), huge0,
"Unexpected xallocx() behavior");
/* Test size increase with zero extra. */
- assert_zu_eq(xallocx(p, huge2, 0, 0), huge2,
+ assert_zu_le(xallocx(p, huge2, 0, 0), huge2,
"Unexpected xallocx() behavior");
- assert_zu_eq(xallocx(p, hugemax+1, 0, 0), huge2,
+ assert_zu_le(xallocx(p, hugemax+1, 0, 0), huge2,
"Unexpected xallocx() behavior");
- assert_zu_eq(xallocx(p, huge0, 0, 0), huge0,
+ assert_zu_ge(xallocx(p, huge0, 0, 0), huge0,
"Unexpected xallocx() behavior");
/* Test size increase with non-zero extra. */
assert_zu_le(xallocx(p, huge0, SIZE_T_MAX - huge0, 0), hugemax,
"Unexpected xallocx() behavior");
- assert_zu_eq(xallocx(p, huge0, 0, 0), huge0,
+ assert_zu_ge(xallocx(p, huge0, 0, 0), huge0,
"Unexpected xallocx() behavior");
/* Test size increase with non-zero extra. */
- assert_zu_eq(xallocx(p, huge0, huge2 - huge0, 0), huge2,
+ assert_zu_le(xallocx(p, huge0, huge2 - huge0, 0), huge2,
"Unexpected xallocx() behavior");
assert_zu_eq(xallocx(p, huge2, 0, 0), huge2,