summaryrefslogtreecommitdiffstats
path: root/lldb/test/command_source
Commit message (Collapse)AuthorAgeFilesLines
* Move more top level test dirs to reside under functionalities dir.Johnny Chen2011-06-263-51/+0
| | | | llvm-svn: 133894
* Add a HideStdout() method to our TestBase class and call it from ↵Johnny Chen2011-04-211-1/+2
| | | | | | | | | | | | TestAbbreviations.py and TestAliases.py. Pass the keyword argument 'check=False' to: self.runCmd("script my.date()", check=False) since we want to restore sys.stdout no matter what the outcome of the runCmd is. llvm-svn: 129949
* Add "import sys" for sys.stdout.Johnny Chen2011-01-281-1/+1
| | | | llvm-svn: 124504
* The restoring of sys.stdout should happen right after:Johnny Chen2011-01-281-3/+3
| | | | | | | | self.runCmd("script my.date()") In case the self.expect() fails, the restore would not be executed. llvm-svn: 124500
* Hardened the test_command_source() test case by actually capturing the outputJohnny Chen2011-01-281-0/+14
| | | | | | | from running the "script my.date()" lldb command and comparing it against our expected result. llvm-svn: 124499
* Changed the test case class names to be noun-like instead of verb-like.Johnny Chen2010-09-011-1/+1
| | | | llvm-svn: 112732
* Converted some more test cases to use runCmd()/expect().Johnny Chen2010-08-201-7/+2
| | | | llvm-svn: 111652
* Modified the remaining test cases to display more meaningful assert messages.Johnny Chen2010-08-091-4/+4
| | | | | | Added a generic message generator to the lldbtest.py base module. llvm-svn: 110625
* o Added unittest2 which has added the new features in unittest for Python 2.7Johnny Chen2010-08-051-2/+2
| | | | | | | | | | | | | | backported to Python 2.3+. Some of the features desired include better verbose reporting in unittest2.TextTestRunner and decorator support for skipping tests and expected failures. http://pypi.python.org/pypi/unittest2 o Modified the existing .py tests to use unittest2 and decorated TestSTL.test_step_into_stl(), which is known to always fail currently, with @unittest2.expectedFailure. llvm-svn: 110397
* When running a single test case, lldb.SBDebugger.Terminate() is not being calledJohnny Chen2010-08-051-1/+2
| | | | | | | because unittest.main() calls sys.exit() before returning. Fixed by registering an exit handler for this situation. llvm-svn: 110379
* Cleanup of test case. Added more comments.Johnny Chen2010-08-021-1/+3
| | | | llvm-svn: 110064
* We can do better when reporting the status of one-liner script execution.Johnny Chen2010-07-301-0/+2
| | | | | | | | | 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
* Add a test case to test that lldb command "command source" works correctly.Johnny Chen2010-07-293-0/+36
llvm-svn: 109806
OpenPOWER on IntegriCloud