diff options
Diffstat (limited to 'test/common/seekablesubreadstream.h')
-rw-r--r-- | test/common/seekablesubreadstream.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/common/seekablesubreadstream.h b/test/common/seekablesubreadstream.h index 68febc7fd6..354e2dd5c1 100644 --- a/test/common/seekablesubreadstream.h +++ b/test/common/seekablesubreadstream.h @@ -58,13 +58,13 @@ class SeekableSubReadStreamTestSuite : public CxxTest::TestSuite { b = ssrs.readByte(); TS_ASSERT( ssrs.eos() ); - ssrs.seek(3, SEEK_END); + ssrs.seek(-3, SEEK_END); TS_ASSERT( !ssrs.eos() ); TS_ASSERT_EQUALS( ssrs.pos(), 5 ); b = ssrs.readByte(); TS_ASSERT_EQUALS( b, 6 ); - ssrs.seek(8, SEEK_END); + ssrs.seek(-8, SEEK_END); TS_ASSERT_EQUALS( ssrs.pos(), 0 ); b = ssrs.readByte(); TS_ASSERT_EQUALS( b, 1 ); |