summaryrefslogtreecommitdiffstats
path: root/lldb/test/command_source/TestCommandSource.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-07-30 22:33:14 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-07-30 22:33:14 +0000
commit7dc2e4784ed3c2f428c992e36f0022253d0a6590 (patch)
treed4664b6e9a111a26b3a14ddbf54b8f605b786bf5 /lldb/test/command_source/TestCommandSource.py
parentfe1a4944b18b702249115935234155047a4798c4 (diff)
downloadbcm5719-llvm-7dc2e4784ed3c2f428c992e36f0022253d0a6590.tar.gz
bcm5719-llvm-7dc2e4784ed3c2f428c992e36f0022253d0a6590.zip
We can do better when reporting the status of one-liner script execution.
Change the prototype of ScriptInterpreter::ExecuteOneLine() to return bool instead of void and take one additional parameter as CommandReturnObject *. Propagate the status of one-liner execution back appropriately. llvm-svn: 109899
Diffstat (limited to 'lldb/test/command_source/TestCommandSource.py')
-rw-r--r--lldb/test/command_source/TestCommandSource.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/test/command_source/TestCommandSource.py b/lldb/test/command_source/TestCommandSource.py
index 979f95c1ea6..45611f4cb22 100644
--- a/lldb/test/command_source/TestCommandSource.py
+++ b/lldb/test/command_source/TestCommandSource.py
@@ -21,6 +21,8 @@ class TestCommandSource(lldbtest.TestBase):
self.assertTrue(res.Succeeded())
self.ci.HandleCommand("script my.date()", res)
+ if (not res.Succeeded()):
+ print res.GetError()
self.assertTrue(res.Succeeded())
time.sleep(1)
OpenPOWER on IntegriCloud