diff --git a/disable_oom_test.patch b/disable_oom_test.patch new file mode 100644 index 0000000..01e66e4 --- /dev/null +++ b/disable_oom_test.patch @@ -0,0 +1,26 @@ +From: Jiri Slaby +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); + } + } diff --git a/jemalloc.changes b/jemalloc.changes index e2d2af7..5eec5a5 100644 --- a/jemalloc.changes +++ b/jemalloc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 20 12:11:43 UTC 2016 - jslaby@suse.com + +- add disable_oom_test.patch + ------------------------------------------------------------------- Mon Feb 29 08:27:44 UTC 2016 - idonmez@suse.com diff --git a/jemalloc.spec b/jemalloc.spec index f53dacd..322307a 100644 --- a/jemalloc.spec +++ b/jemalloc.spec @@ -27,6 +27,7 @@ Url: http://canonware.com/jemalloc/ #Git-Clone: git://canonware.com/jemalloc Source: http://www.canonware.com/download/jemalloc/jemalloc-%{version}.tar.bz2 +Patch0: disable_oom_test.patch BuildRequires: docbook-xsl-stylesheets BuildRequires: libxslt %if 0%{?suse_version} == 1110 @@ -68,6 +69,7 @@ malloc(3) implementation. %prep %setup -q +%patch0 -p1 %build export EXTRA_CFLAGS="%{optflags} -std=gnu99"