to not throw exceptions on I/O error. git-svn-id: https://svn.microneil.com/svn/CodeDweller-Tests/trunk@35 b3372362-9eaa-4a85-aa2b-6faa1ab7c995master
| @@ -220,6 +220,7 @@ testReaderWriter() { | |||
| // Test exception. | |||
| try { | |||
| child.writer.exceptions(std::ostream::failbit | std::ostream::badbit); | |||
| child.writer << bufSize; | |||
| child.writer.flush(); | |||
| NO_EXCEPTION_TERM(" writer called without run()"); | |||
| @@ -326,6 +327,7 @@ testReader() { | |||
| // Test exception. | |||
| try { | |||
| int temp; | |||
| child.reader.exceptions(std::istream::failbit | std::istream::badbit); | |||
| child.reader >> temp; | |||
| NO_EXCEPTION_TERM(" reader called without run()"); | |||
| return false; | |||