diff options
| author | Enrico Granata <egranata@apple.com> | 2015-11-05 00:46:25 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2015-11-05 00:46:25 +0000 |
| commit | 5f92a130ffc225c8120ae7e8fd80e695dd4e51f6 (patch) | |
| tree | 8b96f078685b3914b3e413c568d52d63538644a3 /lldb/packages/Python/lldbsuite/test/functionalities | |
| parent | c77ce7b6263037f717369ce0ca95d51b31b72168 (diff) | |
| download | bcm5719-llvm-5f92a130ffc225c8120ae7e8fd80e695dd4e51f6.tar.gz bcm5719-llvm-5f92a130ffc225c8120ae7e8fd80e695dd4e51f6.zip | |
Teach LLDB how to directly launch processes on the iOS simulator
This allows for command-line debugging of iOS simulator binaries (as long as UI is not required, or a full UI simulator has previously been otherwise launched), as well as execution of the LLDB test suite on the iOS simulator
This is known to compile on OSX 10.11 GM - feedback from people on other platforms and/or older versions of OSX as to the buildability of this code is greatly appreciated
llvm-svn: 252112
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities')
4 files changed, 11 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/process_attach/TestProcessAttach.py b/lldb/packages/Python/lldbsuite/test/functionalities/process_attach/TestProcessAttach.py index 0315748ef5b..83906b54630 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/process_attach/TestProcessAttach.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/process_attach/TestProcessAttach.py @@ -17,6 +17,7 @@ class ProcessAttachTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) + @skipIfiOSSimulator def test_attach_to_process_by_id(self): """Test attach by process id""" self.build() diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/process_attach/attach_denied/TestAttachDenied.py b/lldb/packages/Python/lldbsuite/test/functionalities/process_attach/attach_denied/TestAttachDenied.py index f5e6b71a623..ed9d58f9088 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/process_attach/attach_denied/TestAttachDenied.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/process_attach/attach_denied/TestAttachDenied.py @@ -24,6 +24,7 @@ class AttachDeniedTestCase(TestBase): return (err, shell_command.GetStatus(), shell_command.GetOutput()) @skipIfWindows + @skipIfiOSSimulator def test_attach_to_process_by_id_denied(self): """Test attach by process id denied""" self.build() diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/register/TestRegisters.py b/lldb/packages/Python/lldbsuite/test/functionalities/register/TestRegisters.py index d508c357efe..4a2427edf39 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/register/TestRegisters.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/register/TestRegisters.py @@ -24,6 +24,7 @@ class RegisterCommandsTestCase(TestBase): self.dbg.GetSelectedTarget().GetProcess().Destroy() TestBase.tearDown(self) + @skipIfiOSSimulator def test_register_commands(self): """Test commands related to registers, in particular vector registers.""" if not self.getArchitecture() in ['amd64', 'i386', 'x86_64']: @@ -31,6 +32,7 @@ class RegisterCommandsTestCase(TestBase): self.build() self.register_commands() + @skipIfiOSSimulator @skipIfTargetAndroid(archs=["i386"]) # Writing of mxcsr register fails, presumably due to a kernel/hardware problem def test_fp_register_write(self): """Test commands that write to registers, in particular floating-point registers.""" @@ -39,6 +41,7 @@ class RegisterCommandsTestCase(TestBase): self.build() self.fp_register_write() + @skipIfiOSSimulator @expectedFailureAndroid(archs=["i386"]) # "register read fstat" always return 0xffff @skipIfFreeBSD #llvm.org/pr25057 def test_fp_special_purpose_register_read(self): @@ -48,6 +51,7 @@ class RegisterCommandsTestCase(TestBase): self.build() self.fp_special_purpose_register_read() + @skipIfiOSSimulator def test_register_expressions(self): """Test expression evaluation with commands related to registers.""" if not self.getArchitecture() in ['amd64', 'i386', 'x86_64']: @@ -55,6 +59,7 @@ class RegisterCommandsTestCase(TestBase): self.build() self.register_expressions() + @skipIfiOSSimulator def test_convenience_registers(self): """Test convenience registers.""" if not self.getArchitecture() in ['amd64', 'x86_64']: @@ -62,6 +67,7 @@ class RegisterCommandsTestCase(TestBase): self.build() self.convenience_registers() + @skipIfiOSSimulator def test_convenience_registers_with_process_attach(self): """Test convenience registers after a 'process attach'.""" if not self.getArchitecture() in ['amd64', 'x86_64']: @@ -69,6 +75,7 @@ class RegisterCommandsTestCase(TestBase): self.build() self.convenience_registers_with_process_attach(test_16bit_regs=False) + @skipIfiOSSimulator def test_convenience_registers_16bit_with_process_attach(self): """Test convenience registers after a 'process attach'.""" if not self.getArchitecture() in ['amd64', 'x86_64']: diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py b/lldb/packages/Python/lldbsuite/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py index 6b9eb321a0e..977254343aa 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py @@ -19,6 +19,7 @@ class CreateAfterAttachTestCase(TestBase): # not yet investigated. Revisit once required functionality # is implemented for FreeBSD. @skipIfWindows # Occasionally hangs on Windows, may be same as other issues. + @skipIfiOSSimulator def test_create_after_attach_with_popen(self): """Test thread creation after process attach.""" self.build(dictionary=self.getBuildFlags(use_cpp11=False)) @@ -29,6 +30,7 @@ class CreateAfterAttachTestCase(TestBase): @skipIfRemote @skipIfWindows # Windows doesn't have fork. @expectedFlakeyLinux("llvm.org/pr16229") # 1/100 dosep, build 3546, clang-3.5 x84_64 + @skipIfiOSSimulator def test_create_after_attach_with_fork(self): """Test thread creation after process attach.""" self.build(dictionary=self.getBuildFlags(use_cpp11=False)) |

