diff options
Diffstat (limited to 'test/io/read_test.cpp')
| -rw-r--r-- | test/io/read_test.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/io/read_test.cpp b/test/io/read_test.cpp index d13402c2ea..ab1a46cc97 100644 --- a/test/io/read_test.cpp +++ b/test/io/read_test.cpp @@ -153,6 +153,13 @@ void test_read_errors() ASSERT(file); EXPECT_EXCEPTION(reader.read_tag(), io::input_error); ASSERT(!file); + + //EOF within a key in a compound + file.close(); + file.open("errortest_eof2", std::ios::binary); + ASSERT(file); + EXPECT_EXCEPTION(reader.read_tag(), io::input_error); + ASSERT(!file); } int main() |
