Skip to content

Commit b21dd44

Browse files
[lldb][test] Enable non-address bit WritePointerToMemory test on Linux (#157435)
First added in #153585 for Darwin only. All Linux AArch64 systems also have Top Byte Ignore enabled in userspace so the test "just works" there. FreeBSD has very recently gained Top Byte Ignore support: freebsd/freebsd-src@4c6c27d However it's so recent, I don't want to assume it'll be available on any random FreeBSD system out there. There isn't really a good place to put this test, so I put it in the top level of API, next to the other non-address bit test that didn't have a good home either.
1 parent 50ef746 commit b21dd44

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed
File renamed without changes.
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
from lldbsuite.test import lldbutil
77

88

9-
@skipUnlessDarwin
10-
@skipIf(archs=no_match(["arm64", "arm64e"]))
9+
# On AArch64 systems, unused top bits of pointers can be used for other things.
10+
@skipIf(archs=no_match(["aarch64", "arm64", "arm64e"]))
11+
# Only run this test on systems where Top Byte Ignore is known to be enabled
12+
# and widely available (FreeBSD has support but only since recently).
13+
@skipUnlessPlatform(["linux"] + lldbplatformutil.getDarwinOSTriples())
1114
class TestArmPointerMetadataStripping(TestBase):
1215
# Use extra_symbols.json as a template to add a new symbol whose address
1316
# contains non-zero high order bits set.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)