From 12988e5282ef52a2806cbaca9f4074698f35e399 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 7 Dec 2011 22:57:34 +0900 Subject: Replaced uint64_t with off_t or int64_t. Since off_t is int64_t with LFS, we cannot take advantage of extra capacity of uint64_t. --- test/MultiFileAllocationIteratorTest.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/MultiFileAllocationIteratorTest.cc') diff --git a/test/MultiFileAllocationIteratorTest.cc b/test/MultiFileAllocationIteratorTest.cc index 9d5aaf62..03237451 100644 --- a/test/MultiFileAllocationIteratorTest.cc +++ b/test/MultiFileAllocationIteratorTest.cc @@ -209,11 +209,11 @@ void MultiFileAllocationIteratorTest::testAllocate() while(!itr->finished()) { itr->allocateChunk(); } - CPPUNIT_ASSERT_EQUAL((uint64_t)length1, File(fileEntry1->getPath()).size()); - CPPUNIT_ASSERT_EQUAL((uint64_t)length2, File(fileEntry2->getPath()).size()); - CPPUNIT_ASSERT_EQUAL((uint64_t)length3, File(fileEntry3->getPath()).size()); + 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(!File(fileEntry4->getPath()).isFile()); - CPPUNIT_ASSERT_EQUAL((uint64_t)length5, File(fileEntry5->getPath()).size()); + CPPUNIT_ASSERT_EQUAL((off_t)length5, File(fileEntry5->getPath()).size()); CPPUNIT_ASSERT(!File(fileEntry6->getPath()).isFile()); } catch(Exception& e) { CPPUNIT_FAIL(e.stackTrace()); -- cgit