@@ -121,8 +121,8 @@ TEST(file, copy_file) {
121121
122122 EXPECT_TRUE (fs::is_regular_file (tmpfile));
123123
124- auto stream = std::ifstream (copy.path ());
125- auto content = std::string (std::istreambuf_iterator (stream), {});
124+ std::ifstream stream = std::ifstream (copy.path ());
125+ std::string content = std::string (std::istreambuf_iterator (stream), {});
126126 EXPECT_EQ (content, " Hello, world!" );
127127}
128128
@@ -148,8 +148,8 @@ TEST(file, move_to_self) {
148148 EXPECT_TRUE (fs::exists (path));
149149
150150 {
151- auto stream = std::ifstream (path);
152- auto content = std::string (std::istreambuf_iterator (stream), {});
151+ std::ifstream stream = std::ifstream (path);
152+ std::string content = std::string (std::istreambuf_iterator (stream), {});
153153 EXPECT_EQ (content, " Hello, world!" );
154154 }
155155
@@ -177,8 +177,8 @@ TEST(file, move_to_existing_file) {
177177 EXPECT_FALSE (fs::exists (path, ec));
178178
179179 {
180- auto stream = std::ifstream (to);
181- auto content = std::string (std::istreambuf_iterator (stream), {});
180+ std::ifstream stream = std::ifstream (to);
181+ std::string content = std::string (std::istreambuf_iterator (stream), {});
182182 EXPECT_EQ (content, " Hello, world!" );
183183 }
184184
0 commit comments