diff options
Diffstat (limited to 'tools/qa/cppunit/test_stream.cxx')
-rw-r--r-- | tools/qa/cppunit/test_stream.cxx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tools/qa/cppunit/test_stream.cxx b/tools/qa/cppunit/test_stream.cxx index d8e4d1ef71e1..b58d1f07aaa5 100644 --- a/tools/qa/cppunit/test_stream.cxx +++ b/tools/qa/cppunit/test_stream.cxx @@ -84,18 +84,6 @@ namespace //yet, the read didn't succeed CPPUNIT_ASSERT(!aMemStream.good()); - //set things up so that there is only one byte available on an attempt - //to read a two-byte sal_uInt16. The byte should be consumed, but the - //operation should fail, and tools_b should remain unchanged, - sal_uInt16 tools_b = 0x1122; - aMemStream.SeekRel(-1); - CPPUNIT_ASSERT(!aMemStream.eof()); - CPPUNIT_ASSERT(aMemStream.good()); - aMemStream.ReadUInt16( tools_b ); - CPPUNIT_ASSERT(!aMemStream.good()); - CPPUNIT_ASSERT(aMemStream.eof()); - CPPUNIT_ASSERT_EQUAL(static_cast<sal_uInt16>(0x1122), tools_b); - iss.clear(); iss.seekg(0); CPPUNIT_ASSERT(iss.good()); |