[llvm] [unittest] Skip W+X MappedMemoryTests on OpenBSD (PR #89102)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 17 10:17:25 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-support
Author: Brad Smith (brad0)
<details>
<summary>Changes</summary>
OpenBSD uses W^X so the tests will not work.
---
Full diff: https://github.com/llvm/llvm-project/pull/89102.diff
1 Files Affected:
- (modified) llvm/unittests/Support/MemoryTest.cpp (+1-1)
``````````diff
diff --git a/llvm/unittests/Support/MemoryTest.cpp b/llvm/unittests/Support/MemoryTest.cpp
index 0164492829ccd7..9daa6d0ff9e4dd 100644
--- a/llvm/unittests/Support/MemoryTest.cpp
+++ b/llvm/unittests/Support/MemoryTest.cpp
@@ -40,7 +40,7 @@ bool IsMPROTECT() {
err(EXIT_FAILURE, "sysctl");
return !!(paxflags & CTL_PROC_PAXFLAGS_MPROTECT);
-#elif defined(__APPLE__) && defined(__aarch64__)
+#elif (defined(__APPLE__) && defined(__aarch64__)) || defined(__OpenBSD__)
return true;
#else
return false;
``````````
</details>
https://github.com/llvm/llvm-project/pull/89102
More information about the llvm-commits
mailing list