summaryrefslogtreecommitdiffstats
path: root/googletest/test
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2022-11-07 17:36:17 (GMT)
committerCopybara-Service <copybara-worker@google.com>2022-11-07 17:36:56 (GMT)
commit386c7665f5cf1f772f5877cdb32070d8052041a9 (patch)
tree5d23f907d36827f3a70876941d3fc5cc3b3af4c2 /googletest/test
parenta4f02ef38981350c9d673b9909559c7a86420d7a (diff)
downloadgoogletest-386c7665f5cf1f772f5877cdb32070d8052041a9.zip
googletest-386c7665f5cf1f772f5877cdb32070d8052041a9.tar.gz
googletest-386c7665f5cf1f772f5877cdb32070d8052041a9.tar.bz2
RecordProperty serializes ints and 64-bit ints, including size_ts
PiperOrigin-RevId: 486685761 Change-Id: I164d2646e65670d341dbf437ee571953c456677a
Diffstat (limited to 'googletest/test')
-rw-r--r--googletest/test/gtest_xml_outfile2_test_.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/googletest/test/gtest_xml_outfile2_test_.cc b/googletest/test/gtest_xml_outfile2_test_.cc
index f9a2a6e..f743b31 100644
--- a/googletest/test/gtest_xml_outfile2_test_.cc
+++ b/googletest/test/gtest_xml_outfile2_test_.cc
@@ -39,5 +39,7 @@ class PropertyTwo : public testing::Test {
};
TEST_F(PropertyTwo, TestSomeProperties) {
- RecordProperty("TestSomeProperty", 2);
+ // Validate we can write an unsigned size_t as a property
+ size_t prop_two = 2;
+ RecordProperty("TestSomeProperty", prop_two);
}