diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-07-30 22:33:14 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-07-30 22:33:14 +0000 |
commit | 7dc2e4784ed3c2f428c992e36f0022253d0a6590 (patch) | |
tree | d4664b6e9a111a26b3a14ddbf54b8f605b786bf5 /lldb/test/command_source/TestCommandSource.py | |
parent | fe1a4944b18b702249115935234155047a4798c4 (diff) | |
download | bcm5719-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.py | 2 |
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) |