Skip to content

Commit f4862e7

Browse files
JDevliegherefelipepiovezan
authored andcommitted
[lldb] Merge TestSBCommandReturnObject tests
In llvm#125132, Michael pointed out that there are now two tests with the same name: ./lldb/test/API/api/command-return-object/TestSBCommandReturnObject.py ./lldb/test/API/python_api/commandreturnobject/TestSBCommandReturnObject.py (cherry picked from commit 4722200)
1 parent 263d6fa commit f4862e7

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)