diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-07-08 23:02:33 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-07-08 23:02:33 +0000 |
| commit | 3a709ac7bfb111047c2f5d7743921f88520452e5 (patch) | |
| tree | 9852e515e128473f117f5f6744cc92be3e4e3ce3 /lldb/test/python_api/default-constructor | |
| parent | 129b4cc9ec34e356afb0b1095dd5fadbb9da4f21 (diff) | |
| download | bcm5719-llvm-3a709ac7bfb111047c2f5d7743921f88520452e5.tar.gz bcm5719-llvm-3a709ac7bfb111047c2f5d7743921f88520452e5.zip | |
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
Diffstat (limited to 'lldb/test/python_api/default-constructor')
| -rw-r--r-- | lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py index b7a73bdd0a8..4385825bceb 100644 --- a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py +++ b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py @@ -118,6 +118,7 @@ class APIDefaultConstructorTestCase(TestBase): @python_api_test def test_SBEvent(self): obj = lldb.SBEvent() + obj2 = lldb.SBEvent(0, "abc") if self.TraceOn(): print obj self.assertFalse(obj) |

