diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-09-15 12:04:03 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-09-15 12:04:03 +0200 |
| commit | 089a804a12c0592b0d2a396df1d35dad4fd134c0 (patch) | |
| tree | 5c4e6189d9ffb67bccefd9d078494f5541b31a79 | |
| parent | 4f96ef6b0d4aede214d208090e86cb7b8091f49c (diff) | |
| download | Project-Tick-089a804a12c0592b0d2a396df1d35dad4fd134c0.tar.gz Project-Tick-089a804a12c0592b0d2a396df1d35dad4fd134c0.zip | |
Enable exceptions flag in test
| -rw-r--r-- | test/zlibstream_test.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/zlibstream_test.h b/test/zlibstream_test.h index 4bcf140fd8..caa62a87c8 100644 --- a/test/zlibstream_test.h +++ b/test/zlibstream_test.h @@ -39,11 +39,12 @@ public: expected_in.close(); izlibstream igzs(gzip_in, 256); //Small buffer so not all fits at once (the compressed file is 561 bytes) + igzs.exceptions(std::ios::failbit); TS_ASSERT(igzs.good()); TS_ASSERT(!igzs.eof()); std::stringbuf data; - igzs >> &data; + TS_ASSERT_THROWS_NOTHING(igzs >> &data); TS_ASSERT(igzs); TS_ASSERT(igzs.eof()); TS_ASSERT_EQUALS(data.str(), expected.str()); |
