diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-09-27 20:23:43 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-09-27 20:23:43 +0000 |
commit | 4e6a4fa899a35ee0c86fa788f6a8b054e3cfae2b (patch) | |
tree | bba9c78b5e79ea3edd5f3de267d10666b22a0f98 /lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py | |
parent | b762df58401a3f18fb1a1817b909a1f3d1ce60eb (diff) | |
download | bcm5719-llvm-4e6a4fa899a35ee0c86fa788f6a8b054e3cfae2b.tar.gz bcm5719-llvm-4e6a4fa899a35ee0c86fa788f6a8b054e3cfae2b.zip |
Add fuzz testing for newly added SBWatchpointLocation API.
llvm-svn: 140632
Diffstat (limited to 'lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py')
-rw-r--r-- | lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py index c41fc16cbf2..b46a9fa7bea 100644 --- a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py +++ b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py @@ -339,6 +339,16 @@ class APIDefaultConstructorTestCase(TestBase): import sb_valuelist sb_valuelist.fuzz_obj(obj) + @python_api_test + def test_SBWatchpointLocation(self): + obj = lldb.SBWatchpointLocation() + if self.TraceOn(): + print obj + self.assertFalse(obj) + # Do fuzz testing on the invalid obj, it should not crash lldb. + import sb_watchpointlocation + sb_watchpointlocation.fuzz_obj(obj) + if __name__ == '__main__': import atexit |