- Jul 11, 2011
-
-
Johnny Chen authored
before issuing API calls to find the global variable and to get its value. rdar://problem/9700873 has been updated to reflect the latest status. The dwarf case now does not seg fault if the inferior is not started; instead, for dwarf case, the value retrieved from the global variable is None. llvm-svn: 134909
-
- Jun 27, 2011
-
-
Johnny Chen authored
Test "print object" where another thread blocks the print object from making progress. Set a breakpoint on the line in my_pthread_routine. Then switch threads to the main thread, and do print the lock_me object. Since that will try to get the lock already gotten by my_pthread_routime thread, it will have to switch to running all threads, and that should then succeed. llvm-svn: 133933
-
- Jun 24, 2011
-
-
Johnny Chen authored
Assign the test method name to self.testMethodName. This can be useful for the test directory (see test/types for a good example) which houses a bunch of executables compiled from different source files. The default build action is to create a.out as the binary executable, which can confuse the module cacheing mechanism and result in the debugger getting a stale image as the target to be debugged, and chaos ensues. o AbstractBase.py, TestThreadAPI.py: Use self.testMethodName to our advantage. o TestLoadUnload.py: Add expected failure marker to test case test_modules_search_paths(). llvm-svn: 133768
-
- Jun 21, 2011
-
-
Johnny Chen authored
if not already specified by the test driver (via ./dotest -w). Remove the AbstractBase.setUp() method definition when/if we find out the cause of the failures if no delays are inserted between these test cases. llvm-svn: 133495
-
- Jun 20, 2011
-
-
Peter Collingbourne authored
llvm-svn: 133457
-
- Jun 15, 2011
-
-
Johnny Chen authored
remove the self.runStarted attribute since the automatic shutdown of processes associated with the targets are now performed automatically. llvm-svn: 133092
-
Johnny Chen authored
bool SBDebugger::DeleteTarget(lldb::SBTarget &target); which is used in the test tearDown() phase to cleanup the debugger's target list so that it won't grow larger and larger as test cases are executed. This is also a good opportunity to get rid of the arcane requirement that test cases exercising the Python API must assign the process object to self.process so that it gets shutdown gracefully. Instead, the shutdown of the process associated with each target is now being now automatically. Also get rid of an API from SBTarget class: SBTarget::DeleteTargetFromList(lldb_private::TargetList *list); llvm-svn: 133091
-
- Jun 14, 2011
-
-
Johnny Chen authored
It was introduced to work around some debugger infrastructure bug which has long since been fixed. llvm-svn: 132951
-
- Jun 06, 2011
-
-
Johnny Chen authored
llvm-svn: 132692
-
- Jun 01, 2011
-
-
Johnny Chen authored
inside a try-except block in case the test is not invoked through the dotest.py test driver. llvm-svn: 132372
-
Johnny Chen authored
llvm-svn: 132367
-
- May 28, 2011
-
-
Johnny Chen authored
llvm-svn: 132232
-
Johnny Chen authored
Remove an unnecessary __import__() function call. llvm-svn: 132231
-
- May 25, 2011
-
-
Johnny Chen authored
llvm-svn: 132072
-
- May 07, 2011
-
-
Johnny Chen authored
llvm-svn: 131035
-
- 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
-