def test_SBType(self): try: obj = lldb.SBType() if self.TraceOn(): print obj self.assertFalse(obj) # If we reach here, the test fails. self.fail("lldb.SBType() should fail, not succeed!") except: # Exception is expected. return # Unreachable code because lldb.SBType() should fail. # Do fuzz testing on the invalid obj, it should not crash lldb. import sb_type sb_type.fuzz_obj(obj)
def test_SBType(self): try: obj = lldb.SBType() if self.TraceOn(): print(obj) self.assertFalse(obj) # If we reach here, the test fails. self.fail("lldb.SBType() should fail, not succeed!") except: # Exception is expected. return # Unreachable code because lldb.SBType() should fail. # Do fuzz testing on the invalid obj, it should not crash lldb. import sb_type sb_type.fuzz_obj(obj)