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: Update gtest-9999-fix-gcc6-undefined-behavior.patch
Package-Manager: Portage-2.3.49, Repoman-2.3.10
- Loading branch information
1 parent
1836afd
commit f526bd2
Showing
4 changed files
with
28 additions
and
11 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
dev-cpp/gtest/files/gtest-1.8.0-fix-gcc6-undefined-behavior.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,21 @@ | ||
Fix build with GCC 6 due to lifetime issues. | ||
|
||
--- a/googletest/src/gtest.cc | ||
+++ b/googletest/src/gtest.cc | ||
@@ -2654,10 +2654,12 @@ | ||
test->Run(); | ||
} | ||
|
||
- // Deletes the test object. | ||
- impl->os_stack_trace_getter()->UponLeavingGTest(); | ||
- internal::HandleExceptionsInMethodIfSupported( | ||
- test, &Test::DeleteSelf_, "the test fixture's destructor"); | ||
+ if (test != NULL) { | ||
+ // Deletes the test object. | ||
+ impl->os_stack_trace_getter()->UponLeavingGTest(); | ||
+ internal::HandleExceptionsInMethodIfSupported( | ||
+ test, &Test::DeleteSelf_, "the test fixture's destructor"); | ||
+ } | ||
|
||
result_.set_elapsed_time(internal::GetTimeInMillis() - start); | ||
|
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
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