mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 05:27:38 +03:00
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.
This commit is contained in:
parent
f25e67b017
commit
12988e5282
127 changed files with 457 additions and 490 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue