summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorUwe Klotz <uwe_klotz@web.de>2017-01-26 13:17:49 +0100
committerUwe Klotz <uwe_klotz@web.de>2017-01-26 13:17:49 +0100
commit9c14b70e7f4041cd822d87984c00c4df0515da3a (patch)
tree47c54f131df47737a62e74010ec3886cc51cf708 /lib
parentec2d342d03df27b64b9e2d78dd857c6be1a97d32 (diff)
Patch gmock-1.7.0 to avoid segfaults with GCC 6 in tests
As suggested here: https://github.com/google/googletest/issues/705#issuecomment-235067917
Diffstat (limited to 'lib')
-rw-r--r--lib/gmock-1.7.0/include/gmock/gmock-spec-builders.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gmock-1.7.0/include/gmock/gmock-spec-builders.h b/lib/gmock-1.7.0/include/gmock/gmock-spec-builders.h
index 312fbe8705..bf08a715de 100644
--- a/lib/gmock-1.7.0/include/gmock/gmock-spec-builders.h
+++ b/lib/gmock-1.7.0/include/gmock/gmock-spec-builders.h
@@ -1381,7 +1381,7 @@ class ActionResultHolder<void> : public UntypedActionResultHolderBase {
const typename Function<F>::ArgumentTuple& args,
const string& call_description) {
func_mocker->PerformDefaultAction(args, call_description);
- return NULL;
+ return new ActionResultHolder();
}
// Performs the given action and returns NULL.
@@ -1390,7 +1390,7 @@ class ActionResultHolder<void> : public UntypedActionResultHolderBase {
const Action<F>& action,
const typename Function<F>::ArgumentTuple& args) {
action.Perform(args);
- return NULL;
+ return new ActionResultHolder();
}
};