Browse Source

Set reader/writer to throw exception. Reason: Child modified

to not throw exceptions on I/O error.


git-svn-id: https://svn.microneil.com/svn/CodeDweller-Tests/trunk@35 b3372362-9eaa-4a85-aa2b-6faa1ab7c995
master
adeniz 9 years ago
parent
commit
c4513b3b47
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      TestChild/testChild.cpp

+ 2
- 0
TestChild/testChild.cpp View File

@@ -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;

Loading…
Cancel
Save