|
7 | 7 | from lldbsuite.test import lldbutil |
8 | 8 | import lldbsuite.test.cpu_feature as cpu_feature |
9 | 9 |
|
10 | | -exe_name = "uaf_mte" # Must match Makefile |
| 10 | +exe_name = "uaf" # Must match Makefile |
11 | 11 |
|
12 | 12 |
|
13 | 13 | class TestDarwinMTE(TestBase): |
14 | 14 | NO_DEBUG_INFO_TESTCASE = True |
15 | 15 |
|
| 16 | + @skipUnlessFeature(cpu_feature.AArch64.MTE) |
| 17 | + def test_process_launch_memory_tagging(self): |
| 18 | + self.build(make_targets=["binary-plain"]) |
| 19 | + self.createTestTarget(self.getBuildArtifact(exe_name)) |
| 20 | + |
| 21 | + self.expect("process launch", substrs=["exited with status = 0"]) |
| 22 | + |
| 23 | + self.expect( |
| 24 | + "process launch --memory-tagging", |
| 25 | + substrs=["stopped", "stop reason = EXC_ARM_MTE_TAG_FAULT"], |
| 26 | + ) |
| 27 | + |
16 | 28 | @skipUnlessFeature(cpu_feature.AArch64.MTE) |
17 | 29 | def test_tag_fault(self): |
18 | 30 | self.build() |
@@ -47,7 +59,7 @@ def test_memory_region(self): |
47 | 59 | self.expect("memory region ptr", substrs=["memory tagging: enabled"]) |
48 | 60 |
|
49 | 61 | @skipUnlessFeature(cpu_feature.AArch64.MTE) |
50 | | - def test_memory_read_with_tags(self): |
| 62 | + def test_memory_read_show_tags(self): |
51 | 63 | self.build() |
52 | 64 | lldbutil.run_to_source_breakpoint( |
53 | 65 | self, "// before free", lldb.SBFileSpec("main.c"), exe_name=exe_name |
|
0 commit comments