summaryrefslogtreecommitdiff
path: root/test/FallocFileAllocationIteratorTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-06-21 18:04:30 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-06-21 19:29:54 +0900
commit318c804504e32b7a0bbdbb35336d2e918000d80a (patch)
treefad396aee04c44a29ee79b33e1675db2275146c0 /test/FallocFileAllocationIteratorTest.cc
parent8ba9b0474747185708a25943fb6d2f97b3d9b17f (diff)
Use user-defined literal for k, m, and g (powers of 1024)
Diffstat (limited to 'test/FallocFileAllocationIteratorTest.cc')
-rw-r--r--test/FallocFileAllocationIteratorTest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/FallocFileAllocationIteratorTest.cc b/test/FallocFileAllocationIteratorTest.cc
index baa18686..14dfc6e8 100644
--- a/test/FallocFileAllocationIteratorTest.cc
+++ b/test/FallocFileAllocationIteratorTest.cc
@@ -39,7 +39,7 @@ void FallocFileAllocationIteratorTest::testAllocate()
DefaultDiskWriter writer(fn);
int64_t offset = 10;
- int64_t totalLength = 40960;
+ int64_t totalLength = 40_k;
// we have to open file first.
writer.openExistingFile();
@@ -48,7 +48,7 @@ void FallocFileAllocationIteratorTest::testAllocate()
itr.allocateChunk();
CPPUNIT_ASSERT(itr.finished());
- CPPUNIT_ASSERT_EQUAL((int64_t)40960, f.size());
+ CPPUNIT_ASSERT_EQUAL((int64_t)40_k, f.size());
#endif // !HAVE_FALLOCATE
}