mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 14:42:26 +00:00
TESTS: Add failing test for repeated seeks in BufferedSeekableReadStream
This commit is contained in:
parent
980dc4a456
commit
da8eeb9dbe
@ -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;
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user