summaryrefslogtreecommitdiffstats
path: root/lldb/test/command_source/TestCommandSource.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-08-09 23:44:24 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-08-09 23:44:24 +0000
commit1794184ada29ba245486b999249341eb19367e8a (patch)
treed826c0ae1bd1ec2ff8db4d79d2e700bdacc2b88e /lldb/test/command_source/TestCommandSource.py
parent5aee162f978eac7ffb6363d25b193e51edfbc0b1 (diff)
downloadbcm5719-llvm-1794184ada29ba245486b999249341eb19367e8a.tar.gz
bcm5719-llvm-1794184ada29ba245486b999249341eb19367e8a.zip
Modified the remaining test cases to display more meaningful assert messages.
Added a generic message generator to the lldbtest.py base module. llvm-svn: 110625
Diffstat (limited to 'lldb/test/command_source/TestCommandSource.py')
-rw-r--r--lldb/test/command_source/TestCommandSource.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/test/command_source/TestCommandSource.py b/lldb/test/command_source/TestCommandSource.py
index e1e233013ac..c9f151e698c 100644
--- a/lldb/test/command_source/TestCommandSource.py
+++ b/lldb/test/command_source/TestCommandSource.py
@@ -7,9 +7,9 @@ See also http://llvm.org/viewvc/llvm-project?view=rev&revision=109673.
import os, time
import unittest2
import lldb
-import lldbtest
+from lldbtest import *
-class TestCommandSource(lldbtest.TestBase):
+class TestCommandSource(TestBase):
mydir = "command_source"
@@ -20,13 +20,13 @@ class TestCommandSource(lldbtest.TestBase):
# Sourcing .lldb in the current working directory, which in turn imports
# the "my" package that defines the date() function.
self.ci.HandleCommand("command source .lldb", res)
- self.assertTrue(res.Succeeded())
+ self.assertTrue(res.Succeeded(), CMD_MSG('command source .lldb'))
# Python should evaluate "my.date()" successfully.
self.ci.HandleCommand("script my.date()", res)
if (not res.Succeeded()):
print res.GetError()
- self.assertTrue(res.Succeeded())
+ self.assertTrue(res.Succeeded(), CMD_MSG('script my.date()'))
if __name__ == '__main__':
OpenPOWER on IntegriCloud