aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock/test/gmock-actions_test.cc
diff options
context:
space:
mode:
authorGennadiy Civil <gennadiycivil@users.noreply.github.com>2018-03-05 11:03:08 -0500
committerGitHub <noreply@github.com>2018-03-05 11:03:08 -0500
commit915c8d051d0a717f8af6559c03e4220e3c39a24c (patch)
tree4619144d24d9a5c381d8ccfcdec5cf5653036b5a /googlemock/test/gmock-actions_test.cc
parent6c73adfc03e277f55cb1e4947b3a5e6c5ff4fe46 (diff)
parent829a8c966b80237b7c517da55a383698b52c357f (diff)
downloadgoogletest-915c8d051d0a717f8af6559c03e4220e3c39a24c.tar.gz
googletest-915c8d051d0a717f8af6559c03e4220e3c39a24c.tar.bz2
googletest-915c8d051d0a717f8af6559c03e4220e3c39a24c.zip
Merge pull request #1477 from sgraham/unsigned-wchar
Try to handle unsigned wchar_t (arm) a bit better
Diffstat (limited to 'googlemock/test/gmock-actions_test.cc')
-rw-r--r--googlemock/test/gmock-actions_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/googlemock/test/gmock-actions_test.cc b/googlemock/test/gmock-actions_test.cc
index f7218391..9447c22b 100644
--- a/googlemock/test/gmock-actions_test.cc
+++ b/googlemock/test/gmock-actions_test.cc
@@ -107,7 +107,11 @@ TEST(BuiltInDefaultValueTest, IsZeroForNumericTypes) {
EXPECT_EQ(0, BuiltInDefaultValue<signed wchar_t>::Get());
#endif
#if GMOCK_WCHAR_T_IS_NATIVE_
+#if !defined(__WCHAR_UNSIGNED__)
EXPECT_EQ(0, BuiltInDefaultValue<wchar_t>::Get());
+#else
+ EXPECT_EQ(0U, BuiltInDefaultValue<wchar_t>::Get());
+#endif
#endif
EXPECT_EQ(0U, BuiltInDefaultValue<unsigned short>::Get()); // NOLINT
EXPECT_EQ(0, BuiltInDefaultValue<signed short>::Get()); // NOLINT