- May 06, 2011
-
-
Johnny Chen authored
llvm-svn: 131011
-
Johnny Chen authored
llvm-svn: 130965
-
Johnny Chen authored
llvm-svn: 130963
-
Johnny Chen authored
llvm-svn: 130960
-
- May 05, 2011
-
-
Johnny Chen authored
o lldb.debugger o lldb.target o lldb.process o lldb.thread o lldb.frame "just works" when we stop at a breakpoint. llvm-svn: 130904
-
- May 04, 2011
-
-
Johnny Chen authored
Use a more gentle way of shutting down the child process spawned during the test execution using pexpect. Change some child.expect() to child.expect_exact() as they try to match the string, not a regular expression. llvm-svn: 130797
-
- May 03, 2011
-
-
Johnny Chen authored
Change one test sequence to detect the '** End Stop Hooks **' marker emitted by the stop hooks mechanism and check for whether the 'expr ptr' stop-hook has been run. Also, change the TestBase.tearDown() to wait for 2 seocnds before forcefully kill the pexpect-spawned child lldb process. llvm-svn: 130767
-
- Apr 27, 2011
-
-
Johnny Chen authored
And modify the test cases accordingly. llvm-svn: 130314
-
- Apr 22, 2011
-
-
Johnny Chen authored
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
-
- Apr 19, 2011
-
-
Johnny Chen authored
llvm-svn: 129786
-
Johnny Chen authored
currently in trace mode (-t to dotest.py), i.e., tracing the lldb command execution. Change TestInferiorCrashing.inferior_crashing_python(self) to check this flag in order to print the stack trace of the inferior thread. llvm-svn: 129785
-
- Apr 18, 2011
-
-
Johnny Chen authored
llvm-svn: 129717
-
- Apr 15, 2011
-
-
- Mar 23, 2011
-
-
Johnny Chen authored
rdar://problem/9173060 lldb hangs while running unique-types disappears if running with clang version >= 3. Modify the TestUniqueTypes.py to detect if we are running with clang version < 3 and, if true, skip the test. Update the lldbtest.system() function to return a tuple of (stdoutdata, stderrdata) since we need the stderr data from "clang -v" command. Modify existing clients of lldbtest.system() to now use, for example: # First, capture the golden output emitted by the oracle, i.e., the # series of printf statements. - go = system("./a.out", sender=self) + go = system("./a.out", sender=self)[0] # This golden list contains a list of (variable, value) pairs extracted # from the golden output. gl = [] And add two utility functions to lldbutil.py. llvm-svn: 128162
-
- Mar 12, 2011
-
-
Johnny Chen authored
This uses pexpect module to spawn a 'lldb' program and uses pseudo-TTY to talk to the child application. The test cases test setting breakpoints, adding a stop-hook with line range, and verifies that when the inferior stops, the stop-hook will fire off when it is within range and will not fire off when it is out of range. llvm-svn: 127519
-
- Mar 11, 2011
-
-
Johnny Chen authored
llvm-svn: 127481
-
- Jan 27, 2011
-
-
Johnny Chen authored
command line options to the test driver. Replace TestBase.getRunSpec() with TestBase.getRunOptions(). llvm-svn: 124353
-
- Jan 23, 2011
-
-
Greg Clayton authored
SWIG renaming done to work around deprecated APIs. llvm-svn: 124075
-
- Jan 19, 2011
-
-
Johnny Chen authored
llvm-svn: 123840
-
Johnny Chen authored
"process launch" or "run" interpreter command. Let's do the sleep only if the process launch failed. This saves about 135 seconds from the whole test suite run time. llvm-svn: 123806
-
- Dec 23, 2010
-
-
Johnny Chen authored
get the argument values of the call stacks when stopped on the breakpoint. Radar has been filed for the expected failures: test failure: ./dotest.py -v -w -t -p TestFrames (argument values are wrong) llvm-svn: 122460
-
- Dec 15, 2010
-
-
Johnny Chen authored
ALso add a teardown hook to the LoadUnloadTestCase.test_dyld_library_path() test case to have it restore the DYLD_LIBRARY_PATH environment variable. llvm-svn: 121802
-
- Dec 13, 2010
-
-
Johnny Chen authored
with both command line and Python API tests. llvm-svn: 121717
-
- Dec 10, 2010
-
-
Johnny Chen authored
test class. llvm-svn: 121538
-
Johnny Chen authored
Add an attribute __python_api_test__ (set to True) to the @python_api_test decorated test method to distinguish them from the lldb command line tests. llvm-svn: 121500
-
Johnny Chen authored
Example: @python_api_test def test_evaluate_expression_python(self): """Test SBFrame.EvaluateExpression() API for evaluating an expression.""" ... The opposite of Python APIs only test is an lldb command line test, which sends commands to the lldb command interpreter. Add a '-a' option to the test driver to skip Python API only tests. Modify TestExprs.py to mark a test as @python_api_test and remove an @expectedFailure decorator as the bug has been fixed. llvm-svn: 121442
-
- Dec 09, 2010
-
-
Johnny Chen authored
Initial test case test_modify_source_file_while_debugging() in TestSourceManager.py tests the caching mechanism of the source manager. llvm-svn: 121389
-
- Dec 08, 2010
-
-
Johnny Chen authored
as the args and the envs to the launched process. o lldbtest.py: Forgot to check in some assertion messages changes for lldbtest.py. o dotest.py: Also add "api" category to the default lldb log option list. llvm-svn: 121220
-
- Dec 06, 2010
-
-
Johnny Chen authored
within the file 'filename'. llvm-svn: 121039
-
- Dec 04, 2010
-
-
Johnny Chen authored
llvm-svn: 120861
-
- Dec 02, 2010
-
-
Johnny Chen authored
cases when specifying '-w' to the test driver, by using an environment variable LLDB_TIME_WAIT_BETWEEN_TEST_CASES. llvm-svn: 120625
-
Johnny Chen authored
before iterating on it. llvm-svn: 120623
-
- Dec 01, 2010
-
-
Johnny Chen authored
test classes or test cases to be excludued from the test suite. Check in an example blacklist file: blacklist.py: """ 'blacklist' is a Python dictionary, it stores the mapping of a string describing either a testclass or a testcase, i.e, testclass.testmethod, to the reason (a string) it is blacklisted. Following is an example which states that test class IntegerTypesExprTestCase should be skipped because 'This test class crashed' and the test case FoundationTestCase.test_data_type_and_expr_with_dsym should be skipped because it is 'Temporarily disabled'. blacklist = {'IntegerTypesExprTestCase': 'This test class crashed', 'FoundationTestCase.test_data_type_and_expr_with_dsym': 'Temporarily disabled' } """ blacklist = {} An example of invoking the test driver and specifying a blacklist file: ./dotest.py -b blacklist.py -v types This runs the tests under 'types' directory but excludes the tests specified in balcklist.py. llvm-svn: 120620
-
- Nov 29, 2010
-
-
Johnny Chen authored
the process status is indeed 'stopped' before invoking 'frame variable -t val' command to inspect the frame variable. When I run the test suite, it sometimes emits an output like: runCmd: frame variable -t val runCmd failed! error: you must be stopped in a valid stack frame to view frame variables. The expect() statement inserted is to make sure that the process is stopped and we have a valid frame. llvm-svn: 120318
-
Johnny Chen authored
Increase the delta between successive test cases, enabled with the '-w' option to the test driver, from 0.5 to 1.0 second, to arrive at a cleaner state before the next test case. llvm-svn: 120315
-
- Nov 17, 2010
-
-
Johnny Chen authored
output from clang and llvm-gcc compiled program; both generate the correct debug info with respect to the typedef scoped inside a namespace. Add a TestBase.getCompiler(self) method which returns the compiler in effect the test suite is now running with. Subclasses (like TestNamespace) can use it to distinguish among different compilers. llvm-svn: 119445
-
- Nov 12, 2010
-
-
Johnny Chen authored
the architecture and compiler specs. llvm-svn: 118860
-
- Nov 11, 2010
-
-
Johnny Chen authored
llvm-svn: 118739
-
- Nov 10, 2010
-
-
Johnny Chen authored
test method when asserting: thread.GetStopReason() == lldb.eStopReasonBreakpoint llvm-svn: 118711
-
- Nov 09, 2010
-
-
Johnny Chen authored
invoke the test driver to rerun the very same test. Example output: /Volumes/data/lldb/svn/trunk/test $ tail 2010-11-09-14_51_34/ExpectedFailure-TestSettings.SettingsCommandTestCase.test_set_output_path.log Traceback (most recent call last): File "/Volumes/data/lldb/svn/trunk/test/settings/TestSettings.py", line 136, in test_set_output_path "'stdout.txt' exists due to target.process.output-path.") AssertionError: False is not True : 'stdout.txt' exists due to target.process.output-path. To rerun this test, issue the following command from the 'test' directory: ./dotest.py -v -t -f SettingsCommandTestCase.test_set_output_path llvm-svn: 118646
-