summaryrefslogtreecommitdiff
path: root/googletest/test/gtest_xml_outfile2_test_.cc
diff options
context:
space:
mode:
authorAndy Soffer <804265+asoffer@users.noreply.github.com>2023-05-01 14:27:38 -0400
committerGitHub <noreply@github.com>2023-05-01 14:27:38 -0400
commit76bce79a3493aa157b3baca833fec1e3934d3512 (patch)
tree535cdfa334eb203cfd03505c82904e314ba7b153 /googletest/test/gtest_xml_outfile2_test_.cc
parent6f1c4b3d7b139c7217698bf4115be9f40785f661 (diff)
parentf345b2ca6adb1b505049190867eedf24d3b5eaa3 (diff)
downloadgoogletest-git-76bce79a3493aa157b3baca833fec1e3934d3512.tar.gz
Merge branch 'main' into fixes_std_pair_diff
Diffstat (limited to 'googletest/test/gtest_xml_outfile2_test_.cc')
-rw-r--r--googletest/test/gtest_xml_outfile2_test_.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/googletest/test/gtest_xml_outfile2_test_.cc b/googletest/test/gtest_xml_outfile2_test_.cc
index 5ee216df..4a76429c 100644
--- a/googletest/test/gtest_xml_outfile2_test_.cc
+++ b/googletest/test/gtest_xml_outfile2_test_.cc
@@ -30,6 +30,8 @@
// gtest_xml_outfile2_test_ writes some xml via TestProperty used by
// gtest_xml_outfiles_test.py
+#include <atomic>
+
#include "gtest/gtest.h"
class PropertyTwo : public testing::Test {
@@ -38,9 +40,7 @@ class PropertyTwo : public testing::Test {
void TearDown() override { RecordProperty("TearDownProp", 2); }
};
-TEST_F(PropertyTwo, TestInt64Properties) {
- // Floats and doubles are written as int64_t, so we test that the values
- // written are truncated to int64_t.
+TEST_F(PropertyTwo, TestInt64ConvertibleProperties) {
float float_prop = 3.25;
RecordProperty("TestFloatProperty", float_prop);