Update utIOStreamBuffer.cpp

kimkulling/add_windows_clang_issue-5519
Kim Kulling 2024-09-10 21:57:58 +02:00 committed by GitHub
parent 3036de89d3
commit 65672a02b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -84,10 +84,10 @@ TEST_F( IOStreamBufferTest, open_close_Test ) {
const auto dataCount = dataSize / sizeof(*data); const auto dataCount = dataSize / sizeof(*data);
char fname[]={ "octest.XXXXXX" }; char fname[]={ "octest.XXXXXX" };
FILE *fsm = fopen(fname, "w+"); auto* fs = MakeTmpFile(fname);
ASSERT_NE(nullptr, fs); ASSERT_NE(nullptr, fs);
auto written = std::fwrite( data, sizeof(*data), dataCount, fs ); auto written = std::fwrite(data, sizeof(*data), dataCount, fs);
EXPECT_NE( 0U, written ); EXPECT_NE( 0U, written );
auto flushResult = std::fflush( fs ); auto flushResult = std::fflush( fs );
ASSERT_EQ(0, flushResult); ASSERT_EQ(0, flushResult);