Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2020-10-13 00:39:48 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2020-10-13 00:39:48 +0300
commit4a107a120c536d88a2e1590bf2ee9f9d1ecc03d1 (patch)
tree5dee53cfac6f2a168a5955bfe8a6c7fbcb052f20 /test
parent9e7ccb3f5f0dc11a431fea931e795d42574c9a98 (diff)
Extend issue0009 timeout on Mac OS, it looks like it's a touch slow to tear down a 2^40 sized file map.
Diffstat (limited to 'test')
-rw-r--r--test/tests/issue0009.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/tests/issue0009.cpp b/test/tests/issue0009.cpp
index 4b17b9fe..3bdfdeb4 100644
--- a/test/tests/issue0009.cpp
+++ b/test/tests/issue0009.cpp
@@ -107,7 +107,11 @@ static inline void TestIssue09c()
auto end = std::chrono::steady_clock::now();
auto diff = std::chrono::duration_cast<std::chrono::milliseconds>(end - begin).count();
std::cout << "Construct and tear down a small mapped_file_handle with a reservation of 2^40 took " << diff << "ms." << std::endl;
+#ifdef __APPLE_
+ BOOST_CHECK(diff < 2500);
+#else
BOOST_CHECK(diff < 250);
+#endif
}
KERNELTEST_TEST_KERNEL(regression, llfio, issues, 9a,