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:
authorHenrik S. Gaßmann <henrik@gassmann.onl>2022-09-14 11:01:48 +0300
committerHenrik S. Gaßmann <henrik@gassmann.onl>2022-09-14 11:01:48 +0300
commit8a92bd841c56e75427a2002c3db46c8c4f49e7df (patch)
tree1e6b74ec67beb25b3ef8eadf2e7c0a6d322053e6
parent05141b444da3ce26740fa0a22baac7f13704609e (diff)
Only execute issue102 test with status code enabled
-rw-r--r--test/tests/issue0102.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/tests/issue0102.cpp b/test/tests/issue0102.cpp
index 6ba76e62..6da854fe 100644
--- a/test/tests/issue0102.cpp
+++ b/test/tests/issue0102.cpp
@@ -26,6 +26,9 @@ 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;
@@ -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())