Skip to content

Commit

Permalink
[unittest] Skip W+X MappedMemoryTests on OpenBSD (llvm#89102)
Browse files Browse the repository at this point in the history
OpenBSD uses W^X so the tests will not work.
  • Loading branch information
brad0 authored Apr 18, 2024
1 parent 472b612 commit fbca90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/unittests/Support/MemoryTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fbca90b

Please sign in to comment.