]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/textfile/textfiletest.cpp
only run tests using multiline strings with multiline text control; document that...
[wxWidgets.git] / tests / textfile / textfiletest.cpp
index aa93472894b2d3837262d5167ece8eeb173ee46a..b85e9444b5e2e486dfcbb28e6fa6e686226a0bb4 100644 (file)
@@ -89,8 +89,8 @@ void TextFileTestCase::CreateTestFile(size_t len, const char *contents)
     FILE *f = fopen(GetTestFileName(), "wb");
     CPPUNIT_ASSERT( f );
 
-    CPPUNIT_ASSERT( fwrite(contents, 1, len, f) >= 0 );
-    CPPUNIT_ASSERT( fclose(f) == 0 );
+    CPPUNIT_ASSERT_EQUAL( len, fwrite(contents, 1, len, f) );
+    CPPUNIT_ASSERT_EQUAL( 0, fclose(f) );
 }
 
 void TextFileTestCase::ReadEmpty()