Accepting request 390795 from home:jirislaby:branches:devel:libraries:c_c++

- add disable_oom_test.patch

OBS-URL: https://build.opensuse.org/request/show/390795
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jemalloc?expand=0&rev=35
This commit is contained in:
Jan Engelhardt 2016-04-20 12:21:38 +00:00 committed by Git OBS Bridge
parent f065ff23ad
commit 967975affd
3 changed files with 33 additions and 0 deletions

26
disable_oom_test.patch Normal file
View File

@ -0,0 +1,26 @@
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);
}
}

View File

@ -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

View File

@ -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"