Skip to content

Commit fbca90b

Browse files
authored
[unittest] Skip W+X MappedMemoryTests on OpenBSD (#89102)
OpenBSD uses W^X so the tests will not work.
1 parent 472b612 commit fbca90b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/unittests/Support/MemoryTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ bool IsMPROTECT() {
4040
err(EXIT_FAILURE, "sysctl");
4141

4242
return !!(paxflags & CTL_PROC_PAXFLAGS_MPROTECT);
43-
#elif defined(__APPLE__) && defined(__aarch64__)
43+
#elif (defined(__APPLE__) && defined(__aarch64__)) || defined(__OpenBSD__)
4444
return true;
4545
#else
4646
return false;

0 commit comments

Comments
 (0)