summaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
diff options
context:
space:
mode:
authorMed Ismail Bennani <medismail.bennani@gmail.com>2022-01-24 21:45:00 +0100
committerMed Ismail Bennani <medismail.bennani@gmail.com>2022-01-24 21:48:31 +0100
commitc3ca2c6b14f91f8232525373c4f5b1dc504a39a1 (patch)
tree60566be51286caaac77a600b7ce767d964e7582b /lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
parent1f6af9c9cefd226f2edbc36040f2ffb81c68a3eb (diff)
[lldb/test] Fix `TestScriptedProcess.test_scripted_process_and_scripted_thread`
This patch updates `dummy_scripted_process.py` to report the dummy thread correctly to reflect the changes introduced by `d3e0f7e`. Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py')
-rw-r--r--lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py b/lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
index 4831d48a0b5a..0c215f082c5d 100644
--- a/lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
+++ b/lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
@@ -41,6 +41,7 @@ class ScriptedProcesTestCase(TestBase):
self.expect('script dir(ScriptedProcess)',
substrs=["launch"])
+ @skipUnlessDarwin
def test_invalid_scripted_register_context(self):
"""Test that we can launch an lldb scripted process with an invalid
Scripted Thread, with invalid register context."""
@@ -77,7 +78,7 @@ class ScriptedProcesTestCase(TestBase):
self.assertIn("Failed to get scripted thread registers data.", log)
- @skipIf(archs=no_match(['x86_64']))
+ @skipIf(archs=no_match(['x86_64', 'arm64', 'arm64e']))
def test_scripted_process_and_scripted_thread(self):
"""Test that we can launch an lldb scripted process using the SBAPI,
check its process ID, read string from memory, check scripted thread
@@ -124,8 +125,10 @@ class ScriptedProcesTestCase(TestBase):
break
self.assertTrue(GPRs, "Invalid General Purpose Registers Set")
- self.assertEqual(GPRs.GetNumChildren(), 21)
+ self.assertGreater(GPRs.GetNumChildren(), 0)
for idx, reg in enumerate(GPRs, start=1):
+ if idx > 21:
+ break
self.assertEqual(idx, int(reg.value, 16))
def create_stack_skinny_corefile(self, file):