From eb302dab827403054ea9b6848bb6e1deb6f0a25d Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sat, 3 Dec 2016 09:23:07 +0100 Subject: [PATCH] Remove compile warning. --- test/unit/utDefaultIOStream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/utDefaultIOStream.cpp b/test/unit/utDefaultIOStream.cpp index 50a15437c..3f570665f 100644 --- a/test/unit/utDefaultIOStream.cpp +++ b/test/unit/utDefaultIOStream.cpp @@ -50,6 +50,7 @@ TEST_F( utDefaultIOStream, FileSizeTest ) { tmpnam( buffer ); std::FILE *fs( std::fopen( buffer, "w+" ) ); size_t written( std::fwrite( buffer, 1, sizeof( char ) * L_tmpnam, fs ) ); + EXPECT_NE( 0U, written ); std::fflush( fs ); TestDefaultIOStream myStream( fs, buffer );