From 4e6a4fa899a35ee0c86fa788f6a8b054e3cfae2b Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Tue, 27 Sep 2011 20:23:43 +0000 Subject: Add fuzz testing for newly added SBWatchpointLocation API. llvm-svn: 140632 --- .../default-constructor/TestDefaultConstructorForAPIObjects.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py') 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 -- cgit v1.2.3