We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50b4f00 commit c006eebCopy full SHA for c006eeb
test/file_descriptor_test.cpp
@@ -173,6 +173,24 @@ void file_descriptor_test()
173
file.close();
174
BOOST_CHECK(!file.is_open());
175
}
176
+
177
+#ifdef _WIN64
178
+ {
179
+ temp_file temp;
180
+ file_descriptor_sink file(temp.name(), BOOST_IOS::trunc);
181
+ std::streamsize len = static_cast<std::streamsize>(4ULL * 1024 * 1024 * 1024 + 1);
182
+ std::unique_ptr<char[]> buf(new char[len]);
183
+ memset(&buf[0], 0, len);
184
+ std::streamsize written = file.write(&buf[0], len);
185
+ std::streamsize pos = file.seek(0, BOOST_IOS::cur);
186
+ BOOST_CHECK_MESSAGE(
187
+ pos == written,
188
+ "silent short write"
189
+ );
190
+ file.close();
191
+ BOOST_CHECK(!file.is_open());
192
+ }
193
+#endif
194
195
{
196
temp_file temp;
0 commit comments