summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Levine <plevine457@gmail.com>2017-09-25 17:37:13 -0400
committerMike Gilbert <floppym@gentoo.org>2018-01-09 11:10:00 -0500
commitc611133fd67da12a870fb9a64c8e8ae298df0e42 (patch)
treecc86d61b0511b88683eea851434d075fd6e034f8 /dev-cpp/gtest/files
parentdev-cpp/gtest: Update metadata.xml (diff)
downloadgentoo-c611133fd67da12a870fb9a64c8e8ae298df0e42.tar.gz
gentoo-c611133fd67da12a870fb9a64c8e8ae298df0e42.tar.bz2
gentoo-c611133fd67da12a870fb9a64c8e8ae298df0e42.zip
dev-cpp/gtest: Fix test failure with sandbox
Bug: https://bugs.gentoo.org/629620 Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-cpp/gtest/files')
-rw-r--r--dev-cpp/gtest/files/gtest-1.8.0-increase-clone-stack-size.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-cpp/gtest/files/gtest-1.8.0-increase-clone-stack-size.patch b/dev-cpp/gtest/files/gtest-1.8.0-increase-clone-stack-size.patch
new file mode 100644
index 00000000000..22ac0b6d4a1
--- /dev/null
+++ b/dev-cpp/gtest/files/gtest-1.8.0-increase-clone-stack-size.patch
@@ -0,0 +1,14 @@
+Bug: https://bugs.gentoo.org/629620
+Upstream PR: https://github.com/google/googletest/pull/1274
+
+--- a/googletest/src/gtest-death-test.cc
++++ b/googletest/src/gtest-death-test.cc
+@@ -1070,7 +1070,7 @@
+
+ if (!use_fork) {
+ static const bool stack_grows_down = StackGrowsDown();
+- const size_t stack_size = getpagesize();
++ const size_t stack_size = getpagesize() * 10;
+ // MMAP_ANONYMOUS is not defined on Mac, so we use MAP_ANON instead.
+ void* const stack = mmap(NULL, stack_size, PROT_READ | PROT_WRITE,
+ MAP_ANON | MAP_PRIVATE, -1, 0);