Daniel Malea
662f2b8be0
Remove decorator to skip event tests
...
- hang resolved in r168503
llvm-svn: 168530
2012-11-23 22:10:20 +00:00
Daniel Malea
218894788d
Temporarily skip tests known to hang on Linux
...
- opened bugzilla defects #14384 and #14385
llvm-svn: 168323
2012-11-19 20:55:52 +00:00
Johnny Chen
24086bc93b
Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases.
...
Plus some minor cleanup of test method names.
Third and final batch is coming.
llvm-svn: 154197
2012-04-06 19:54:10 +00:00
Johnny Chen
2494f555b6
A more succinct assertTrue.
...
llvm-svn: 135544
2011-07-20 00:14:20 +00:00
Johnny Chen
cd1211ef81
Minor change; add an assertTrue stmt.
...
llvm-svn: 135542
2011-07-20 00:11:54 +00:00
Johnny Chen
1d3e880c2c
Passing in os.ctermid() as the arg for SBTarget.Launch(...) for stdin_path, stdout_path, and stderr_path
...
is just wrong and resulted in the inferior's output getting mixed into the GDB remote communication's
log file. Change all test cases to not pass os.ctermid() and either use SBTarget.LaunchSimple() or
SBTarget.Launch() and pass None as stdin_path/stdout_path/srderr_path to use a pseudo terminal.
rdar://problem/9716499 program output is getting mixed into the GDB remote communications
llvm-svn: 134940
2011-07-11 23:38:23 +00:00
Johnny Chen
3a709ac7bf
o TestEvents.py:
...
Add a usage example of SBEvent APIs.
o SBEvent.h and SBListener.h:
Add method docstrings for SBEvent.h and SBListener.h, and example usage of SBEvent into
the class docstring of SBEvent.
o lldb.swig:
Add typemap for SBEvent::SBEvent (uint32_t event, const char *cstr, uint32_t cstr_len)
so that we can use, in Python, obj2 = lldb.SBEvent(0, "abc") to create an SBEvent.
llvm-svn: 134766
2011-07-08 23:02:33 +00:00
Johnny Chen
5a0bee7c5f
The extra burden for the Python API test case to assign its process object to self.process
...
in order to have its process cleaned up (terminated) upon tearDown is gone for good.
Let's simplify a bunch of Python API test cases.
llvm-svn: 133097
2011-06-15 22:14:12 +00:00
Johnny Chen
4ebd019b97
Now that we have added a post-processing step for adding truth value testing to
...
those lldb objects which implement the IsValid() method, let's change the rest of
the test suite to use the more compact truth value testing pattern (the Python way).
llvm-svn: 131970
2011-05-24 18:22:45 +00:00
Johnny Chen
9ae982053f
Convert the rest of the test suite to use the lldbutil.get_description() utility function.
...
llvm-svn: 130041
2011-04-23 00:34:56 +00:00
Johnny Chen
272ae4df7c
Converted to use SBProcess.LaunchSimple().
...
llvm-svn: 129789
2011-04-19 19:25:37 +00:00
Johnny Chen
d762ff1faa
Modify test scripts to accomodate SBTarget.Launch() API change.
...
llvm-svn: 124828
2011-02-03 23:15:53 +00:00
Greg Clayton
6f907e69e9
Deprecated old forms of SBTarget::Launch. There is not just one and no
...
SWIG renaming done to work around deprecated APIs.
llvm-svn: 124075
2011-01-23 17:46:22 +00:00
Johnny Chen
cdbe594841
No need to pass an empty string as an arg or as an env string to the SBTarget.LaunchProcess() API.
...
llvm-svn: 122450
2010-12-22 22:56:19 +00:00
Johnny Chen
77c4697735
Fix some typos in the docstrings and also update the test method names.
...
llvm-svn: 122382
2010-12-22 00:56:47 +00:00
Johnny Chen
f2df189b72
Add test cases for registering a listener object with the broadcaster of a process
...
and waiting for two expected state changed events to arrive: "running" followed by
"stopped".
llvm-svn: 122380
2010-12-22 00:32:54 +00:00
Johnny Chen
3635eae697
Rename the test methods to be more meaningful.
...
llvm-svn: 122352
2010-12-21 19:52:54 +00:00
Johnny Chen
4f8caab924
Set the debugger to asynchronous mode before using the Python API call to kill
...
the process. The custom thread started before this point is running in a loop
waiting for events to come.
llvm-svn: 122316
2010-12-21 05:43:37 +00:00
Johnny Chen
0b0c57806b
Fix typo.
...
llvm-svn: 122306
2010-12-21 02:10:18 +00:00
Johnny Chen
f667ab526b
Added python_api/event/TestEvents.py to get the listener object associated with the
...
debugger and to exercise some event APIs.
llvm-svn: 122304
2010-12-21 02:06:56 +00:00