forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-cpp/gtest: Fix test failure with sandbox
Bug: https://bugs.gentoo.org/629620 Package-Manager: Portage-2.3.6, Repoman-2.3.2
- Loading branch information
1 parent
de6ec6b
commit c611133
Showing
3 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
dev-cpp/gtest/files/gtest-1.8.0-increase-clone-stack-size.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters