A more succinct assertTrue.

llvm-svn: 135544
This commit is contained in:
Johnny Chen 2011-07-20 00:14:20 +00:00
parent e3daab2449
commit 2494f555b6
1 changed files with 1 additions and 2 deletions

View File

@ -150,8 +150,7 @@ class EventAPITestCase(TestBase):
# Now launch the process, and do not stop at entry point.
error = lldb.SBError()
process = target.Launch (listener, None, None, None, None, None, None, 0, False, error)
self.assertTrue(error.Success())
self.assertTrue(process, PROCESS_IS_VALID)
self.assertTrue(error.Success() and process, PROCESS_IS_VALID)
# Get a handle on the process's broadcaster.
broadcaster = process.GetBroadcaster()