summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/process_group/TestChangeProcessGroup.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/functionalities/process_group/TestChangeProcessGroup.py')
-rw-r--r--lldb/test/functionalities/process_group/TestChangeProcessGroup.py27
1 files changed, 8 insertions, 19 deletions
diff --git a/lldb/test/functionalities/process_group/TestChangeProcessGroup.py b/lldb/test/functionalities/process_group/TestChangeProcessGroup.py
index 2d3c0f957d1..343e53d134f 100644
--- a/lldb/test/functionalities/process_group/TestChangeProcessGroup.py
+++ b/lldb/test/functionalities/process_group/TestChangeProcessGroup.py
@@ -17,28 +17,11 @@ class ChangeProcessGroupTestCase(TestBase):
# Find the line number to break for main.c.
self.line = line_number('main.c', '// Set breakpoint here')
- @skipIfWindows # setpgid call does not exist on Windows
- @skipUnlessDarwin
- @dsym_test
- def test_setpgid_with_dsym(self):
- self.buildDsym()
- self.setpgid()
-
@skipIfFreeBSD # Times out on FreeBSD llvm.org/pr23731
@skipIfWindows # setpgid call does not exist on Windows
@expectedFailureAndroid("http://llvm.org/pr23762", api_levels=[16])
- @dwarf_test
- def test_setpgid_with_dwarf(self):
- self.buildDwarf()
- self.setpgid()
-
- def run_platform_command(self, cmd):
- platform = self.dbg.GetSelectedPlatform()
- shell_command = lldb.SBPlatformShellCommand(cmd)
- err = platform.Run(shell_command)
- return (err, shell_command.GetStatus(), shell_command.GetOutput())
-
- def setpgid(self):
+ def test_setpgid(self):
+ self.build()
exe = os.path.join(os.getcwd(), 'a.out')
# Use a file as a synchronization point between test and inferior.
@@ -109,6 +92,12 @@ class ChangeProcessGroupTestCase(TestBase):
process.Continue()
self.assertEqual(process.GetState(), lldb.eStateExited)
+ def run_platform_command(self, cmd):
+ platform = self.dbg.GetSelectedPlatform()
+ shell_command = lldb.SBPlatformShellCommand(cmd)
+ err = platform.Run(shell_command)
+ return (err, shell_command.GetStatus(), shell_command.GetOutput())
+
if __name__ == '__main__':
import atexit
lldb.SBDebugger.Initialize()
OpenPOWER on IntegriCloud