summaryrefslogtreecommitdiffstats
path: root/lldb/test/command_source/TestCommandSource.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-08-02 21:19:08 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-08-02 21:19:08 +0000
commit8402832e50e877f438c1c6deb589b705def23600 (patch)
tree6867da1560f7fcff63ad052edab276659277186d /lldb/test/command_source/TestCommandSource.py
parent8b0f4ff317be790b964821fd1ab854e3398dcc0c (diff)
downloadbcm5719-llvm-8402832e50e877f438c1c6deb589b705def23600.tar.gz
bcm5719-llvm-8402832e50e877f438c1c6deb589b705def23600.zip
Cleanup of test case. Added more comments.
llvm-svn: 110064
Diffstat (limited to 'lldb/test/command_source/TestCommandSource.py')
-rw-r--r--lldb/test/command_source/TestCommandSource.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/test/command_source/TestCommandSource.py b/lldb/test/command_source/TestCommandSource.py
index 45611f4cb22..59a97e55c21 100644
--- a/lldb/test/command_source/TestCommandSource.py
+++ b/lldb/test/command_source/TestCommandSource.py
@@ -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()
OpenPOWER on IntegriCloud