Cleanup of test case. Added more comments.

llvm-svn: 110064
This commit is contained in:
Johnny Chen 2010-08-02 21:19:08 +00:00
parent 8b0f4ff317
commit 8402832e50

View File

@ -1,5 +1,7 @@
"""
Test that lldb command "command source" works correctly.
See also http://llvm.org/viewvc/llvm-project?view=rev&revision=109673.
"""
import os, time
@ -20,12 +22,12 @@ class TestCommandSource(lldbtest.TestBase):
self.ci.HandleCommand("command source .lldb", res)
self.assertTrue(res.Succeeded())
# Python should evaluate "my.date()" successfully.
self.ci.HandleCommand("script my.date()", res)
if (not res.Succeeded()):
print res.GetError()
self.assertTrue(res.Succeeded())
time.sleep(1)
if __name__ == '__main__':
lldb.SBDebugger.Initialize()