Johnny Chen
42dd3ce1ae
Add a test case test_lldb_process_load_and_unload_commands() for using lldb commands
...
'process load' and 'process unload' to load and unload shared library from lldb command
lines.
llvm-svn: 121036
2010-12-06 21:08:51 +00:00
Johnny Chen
0a5f9c96fd
Really remove the @expectedFailure decorator this time.
...
llvm-svn: 118180
2010-11-03 17:12:54 +00:00
Johnny Chen
64b47bd57d
Remove the @expectedFailure decorator. The bug rdar://problem/8508987 has been fixed.
...
llvm-svn: 118179
2010-11-03 17:05:34 +00:00
Johnny Chen
9695636cdb
Add more bug info.
...
llvm-svn: 116950
2010-10-20 21:56:26 +00:00
Johnny Chen
0c724effb8
The StateType representation has been changed. Modify the test cases to accommodate.
...
llvm-svn: 116705
2010-10-18 15:44:42 +00:00
Johnny Chen
262d619be7
Remove file:lineno from the expected substrings. Matching 'a_function, i.e.,
...
the {function.name}, is sufficient for this test case.
Plus added @expectedfailure decorator for a filed bug.
llvm-svn: 115517
2010-10-04 16:58:16 +00:00
Johnny Chen
070ebd93d2
Added a default build phase at the beginning of test_load_unload() test case.
...
llvm-svn: 113039
2010-09-03 23:52:15 +00:00
Johnny Chen
cbb4be0c93
Changed the test case class names to be noun-like instead of verb-like.
...
llvm-svn: 112732
2010-09-01 19:59:58 +00:00
Johnny Chen
5ee881948a
Added a test case test_breakpoint_creation_by_filespec_python() which creates a
...
breakpoint by FileSpec and line number and exercises some FileSpec APIs.
Also, RUN_STOPPED is a bad assert name, RUN_SUCCEEDED is better.
llvm-svn: 112327
2010-08-27 23:47:36 +00:00
Johnny Chen
ff3d01d0b7
Print the verbose output of runCmd()/expect() to stderr instead of stdout.
...
And converted the rest of the test cases to runCmd()/expect().
llvm-svn: 111677
2010-08-20 21:03:09 +00:00
Johnny Chen
0c19186352
Added more informational assert message strings.
...
llvm-svn: 111536
2010-08-19 18:17:48 +00:00
Johnny Chen
6ca006c7c1
Factored the "continue" command execution of the inferior process as part of the
...
cleanup before finish into the test fixture in lldbtest.TestBase.tearDown().
Derivatives of TestBase is responsible for setting self.runStarted to True if an
inferior process has been started.
llvm-svn: 111188
2010-08-16 21:28:10 +00:00
Johnny Chen
1794184ada
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
2010-08-09 23:44:24 +00:00
Johnny Chen
73258830f3
o Added unittest2 which has added the new features in unittest for Python 2.7
...
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
2010-08-05 23:42:46 +00:00
Johnny Chen
a21249597e
When running a single test case, lldb.SBDebugger.Terminate() is not being called
...
because unittest.main() calls sys.exit() before returning. Fixed by registering
an exit handler for this situation.
llvm-svn: 110379
2010-08-05 21:23:45 +00:00
Johnny Chen
49583c207f
Fixed typos from cut-and-paste errors.
...
llvm-svn: 109539
2010-07-27 20:59:06 +00:00
Johnny Chen
41a3c9a5f8
Test that breakpoint by symbol name works correctly dlopen'ing a dynamic lib.
...
llvm-svn: 107812
2010-07-07 21:10:55 +00:00