[lldb][AArch64] Only run MTE memory region test if we have MTE

This test is flakey because it tries to read the proc/smaps
file of the first lldb-server process it finds. This process
can finish before we finish doing that.

http://lab.llvm.org:8011/#/builders/96/builds/6634/steps/6/logs/stdio

For now limit this to MTE targets which basically means
QEMU via lldb-dotest, which doesn't have this issue.

I'll fix the race condition shortly.
This commit is contained in:
David Spickett 2021-04-13 15:37:06 +01:00
parent 8ea5d190ec
commit 29a4d7813c
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ class AArch64LinuxMTEMemoryRegionTestCase(TestBase):
@skipIf(archs=no_match(["aarch64"]))
@skipUnlessPlatform(["linux"])
def test_mte_regions(self):
if not self.isAArch64MTE():
self.skipTest('Target must support MTE.')
if not self.hasLinuxVmFlags():
self.skipTest('/proc/{pid}/smaps VmFlags must be present')