summaryrefslogtreecommitdiff
path: root/test/MultiFileAllocationIteratorTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-06-25 23:35:24 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-06-25 23:35:24 +0900
commit1b874268a067b4aba0e329768b82df635d7cae17 (patch)
treef72263f15286a6c3372d87571c261789ff8c87f7 /test/MultiFileAllocationIteratorTest.cc
parent4b03634f36b05c32737aeea8ca178f53f68052e8 (diff)
Use int64_t instead of off_t
Some classes such as DiskAdaptor, DiskWriter, FileAllocationIterator and ChecksumValidator are left unchanged.
Diffstat (limited to 'test/MultiFileAllocationIteratorTest.cc')
-rw-r--r--test/MultiFileAllocationIteratorTest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/MultiFileAllocationIteratorTest.cc b/test/MultiFileAllocationIteratorTest.cc
index 03237451..32b1bbb8 100644
--- a/test/MultiFileAllocationIteratorTest.cc
+++ b/test/MultiFileAllocationIteratorTest.cc
@@ -209,11 +209,11 @@ void MultiFileAllocationIteratorTest::testAllocate()
while(!itr->finished()) {
itr->allocateChunk();
}
- CPPUNIT_ASSERT_EQUAL((off_t)length1, File(fileEntry1->getPath()).size());
- CPPUNIT_ASSERT_EQUAL((off_t)length2, File(fileEntry2->getPath()).size());
- CPPUNIT_ASSERT_EQUAL((off_t)length3, File(fileEntry3->getPath()).size());
+ CPPUNIT_ASSERT_EQUAL((int64_t)length1, File(fileEntry1->getPath()).size());
+ CPPUNIT_ASSERT_EQUAL((int64_t)length2, File(fileEntry2->getPath()).size());
+ CPPUNIT_ASSERT_EQUAL((int64_t)length3, File(fileEntry3->getPath()).size());
CPPUNIT_ASSERT(!File(fileEntry4->getPath()).isFile());
- CPPUNIT_ASSERT_EQUAL((off_t)length5, File(fileEntry5->getPath()).size());
+ CPPUNIT_ASSERT_EQUAL((int64_t)length5, File(fileEntry5->getPath()).size());
CPPUNIT_ASSERT(!File(fileEntry6->getPath()).isFile());
} catch(Exception& e) {
CPPUNIT_FAIL(e.stackTrace());