diff options
Diffstat (limited to 'test/FallocFileAllocationIteratorTest.cc')
| -rw-r--r-- | test/FallocFileAllocationIteratorTest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/FallocFileAllocationIteratorTest.cc b/test/FallocFileAllocationIteratorTest.cc index 28945c64..3a662494 100644 --- a/test/FallocFileAllocationIteratorTest.cc +++ b/test/FallocFileAllocationIteratorTest.cc @@ -36,12 +36,12 @@ void FallocFileAllocationIteratorTest::testAllocate() File f(fn); CPPUNIT_ASSERT_EQUAL((uint64_t)10, f.size()); - DefaultDiskWriter writer; + DefaultDiskWriter writer(fn); int64_t offset = 10; int64_t totalLength = 40960; // we have to open file first. - writer.openExistingFile(fn); + writer.openExistingFile(); FallocFileAllocationIterator itr(&writer, offset, totalLength); itr.allocateChunk(); |
