aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2013-01-26 19:25:09 +0100
committerWillem Jan Palenstijn2013-01-26 19:25:41 +0100
commitda8eeb9dbed2102764b3ca0697d6882bae0402cc (patch)
treef9db09b7ff637cd11092ef8cf15e39ebaf4e7df1 /test
parent980dc4a456f55a8b6526d2bc6f7694a0b2d666b3 (diff)
downloadscummvm-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.h7
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;
}
};