diff options
author | Willem Jan Palenstijn | 2013-01-26 19:25:09 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-01-26 19:25:41 +0100 |
commit | da8eeb9dbed2102764b3ca0697d6882bae0402cc (patch) | |
tree | f9db09b7ff637cd11092ef8cf15e39ebaf4e7df1 /test | |
parent | 980dc4a456f55a8b6526d2bc6f7694a0b2d666b3 (diff) | |
download | scummvm-rg350-da8eeb9dbed2102764b3ca0697d6882bae0402cc.tar.gz scummvm-rg350-da8eeb9dbed2102764b3ca0697d6882bae0402cc.tar.bz2 scummvm-rg350-da8eeb9dbed2102764b3ca0697d6882bae0402cc.zip |
TESTS: Add failing test for repeated seeks in BufferedSeekableReadStream
Diffstat (limited to 'test')
-rw-r--r-- | test/common/bufferedseekablereadstream.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/common/bufferedseekablereadstream.h b/test/common/bufferedseekablereadstream.h index 11eb58f3d0..bf21f22f77 100644 --- a/test/common/bufferedseekablereadstream.h +++ b/test/common/bufferedseekablereadstream.h @@ -72,6 +72,13 @@ class BufferedSeekableReadStreamTestSuite : public CxxTest::TestSuite { b = ssrs.readByte(); TS_ASSERT_EQUALS(b, 2); + ssrs.seek(5, SEEK_CUR); + TS_ASSERT_EQUALS(ssrs.pos(), 8); + ssrs.seek(-1, SEEK_CUR); + TS_ASSERT_EQUALS(ssrs.pos(), 7); + b = ssrs.readByte(); + TS_ASSERT_EQUALS(b, 7); + delete &ssrs; } }; |