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

github.com/ned14/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas <s_github@nedprod.com>2022-09-14 20:40:02 +0300
committerNiall Douglas <s_github@nedprod.com>2022-09-14 20:40:02 +0300
commitd28a057236710c254349606bed2f84b9483e474d (patch)
tree0ef0f1cf0ba506b43b448ce09b7b31e227c01b05
parent119abbaadb191b7b3e8a4303457fcbf44fc14d3b (diff)
parent6c8e3e10a2919b4da754d0f3db54b3c616e1dd56 (diff)
Merge branch 'develop' of github.com:ned14/llfio into develop
-rw-r--r--test/tests/issue0102.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/tests/issue0102.cpp b/test/tests/issue0102.cpp
index 9438ef28..c308d0c1 100644
--- a/test/tests/issue0102.cpp
+++ b/test/tests/issue0102.cpp
@@ -26,10 +26,13 @@ Distributed under the Boost Software License, Version 1.0.
static inline void TestIssue0102()
{
+#if !LLFIO_EXPERIMENTAL_STATUS_CODE
+ return;
+#else
namespace llfio = LLFIO_V2_NAMESPACE;
namespace outcome_e = OUTCOME_V2_NAMESPACE::experimental;
- auto page = llfio::utils::page_allocator<llfio::byte>().allocate(llfio::utils::page_size());
+ auto page = llfio::utils::page_allocator<unsigned char>().allocate(llfio::utils::page_size());
llfio::file_io_error ioError = llfio::generic_error(llfio::errc::state_not_recoverable);
@@ -40,6 +43,7 @@ static inline void TestIssue0102()
// the following line must not segfault
std::cout << erasedError->message() << std::endl;
+#endif
}
KERNELTEST_TEST_KERNEL(regression, llfio, issues, 0102, "Tests issue #0102 Using a status code converted from a file_io_error segfaults", TestIssue0102())