[Scummvm-cvs-logs] scummvm master -> da8eeb9dbed2102764b3ca0697d6882bae0402cc
wjp
wjp at usecode.org
Sat Jan 26 19:26:30 CET 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
da8eeb9dbe TESTS: Add failing test for repeated seeks in BufferedSeekableReadStream
Commit: da8eeb9dbed2102764b3ca0697d6882bae0402cc
https://github.com/scummvm/scummvm/commit/da8eeb9dbed2102764b3ca0697d6882bae0402cc
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2013-01-26T10:25:41-08:00
Commit Message:
TESTS: Add failing test for repeated seeks in BufferedSeekableReadStream
Changed paths:
test/common/bufferedseekablereadstream.h
diff --git a/test/common/bufferedseekablereadstream.h b/test/common/bufferedseekablereadstream.h
index 11eb58f..bf21f22 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;
}
};
More information about the Scummvm-git-logs
mailing list