Johnny Chen
9633214507
Fix wrong test logic -- should pass "-s address" option to "image dump symtab"
...
in order to sort the output by address.
llvm-svn: 122071
2010-12-17 18:02:08 +00:00
Johnny Chen
1d8ab8a26b
Test order file with both dsym and dwarf combination.
...
llvm-svn: 113884
2010-09-14 22:55:48 +00:00
Johnny Chen
6c3f6862cc
Need to call self.buildDefault() before running the test logic.
...
llvm-svn: 113881
2010-09-14 22:50:50 +00:00
Johnny Chen
9440d1c008
Updated the expected matching strings.
...
llvm-svn: 113756
2010-09-13 16:59:11 +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
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
3c39a980d7
Renaming from TestOrder.py to TestOrderFile.py.
...
llvm-svn: 109540
2010-07-27 21:03:55 +00:00