jemalloc/disable_oom_test.patch

27 lines
709 B
Diff
Raw Normal View History

From: Jiri Slaby <jslaby@suse.cz>
References: https://github.com/jemalloc/jemalloc/issues/379
Subject: Fix broken test
hugemax can be 0x70000000 on i586 and it can indeed be allocated
twice.
Reported, waiting for feedback.
---
test/integration/mallocx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/test/integration/mallocx.c
+++ b/test/integration/mallocx.c
@@ -82,8 +82,8 @@ TEST_BEGIN(test_oom)
p = mallocx(hugemax, 0);
if (p != NULL) {
- assert_ptr_null(mallocx(hugemax, 0),
- "Expected OOM for mallocx(size=%#zx, 0)", hugemax);
+/* assert_ptr_null(mallocx(hugemax, 0),
+ "Expected OOM for mallocx(size=%#zx, 0)", hugemax);*/
dallocx(p, 0);
}
}