diff options
author | Uwe Klotz <uwe_klotz@web.de> | 2017-01-26 13:17:49 +0100 |
---|---|---|
committer | Uwe Klotz <uwe_klotz@web.de> | 2017-01-26 13:17:49 +0100 |
commit | 9c14b70e7f4041cd822d87984c00c4df0515da3a (patch) | |
tree | 47c54f131df47737a62e74010ec3886cc51cf708 /lib | |
parent | ec2d342d03df27b64b9e2d78dd857c6be1a97d32 (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.h | 4 |
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(); } }; |