Skip to content

Commit caa2710

Browse files
Merge pull request #9992 from swiftlang/felipe/cherry-pick-textfix
[lldb] Merge TestSBCommandReturnObject tests
2 parents 6d9705c + f4862e7 commit caa2710

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

lldb/test/API/api/command-return-object/TestSBCommandReturnObject.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,12 @@ def test_sb_command_return_object(self):
2424
# return exit code 0 to indicate success. We can let this exception go
2525
# - the test harness will recognize it as a test failure.
2626
subprocess.check_call([self.driver_exe, self.driver_exe])
27+
28+
def test_get_command(self):
29+
res = lldb.SBCommandReturnObject()
30+
self.assertEqual(res.GetCommand(), "")
31+
32+
ci = self.dbg.GetCommandInterpreter()
33+
ci.HandleCommand("help help", res)
34+
self.assertTrue(res.Succeeded())
35+
self.assertEqual(res.GetCommand(), "help help")

lldb/test/API/python_api/commandreturnobject/TestSBCommandReturnObject.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)