X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14b4f6fcc0e3893a73c628de528febd043a1109e..b5fe7ca67bf3121959a0b5a59afd00c1708f2f03:/tests/textfile/textfiletest.cpp?ds=inline diff --git a/tests/textfile/textfiletest.cpp b/tests/textfile/textfiletest.cpp index aa93472894..b85e9444b5 100644 --- a/tests/textfile/textfiletest.cpp +++ b/tests/textfile/textfiletest.cpp @@ -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()