Add extra diagnostics to test

llvm-svn: 346572
This commit is contained in:
Adrian Prantl 2018-11-10 00:16:39 +00:00
parent a9796ede39
commit 2ddb2652d9
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,8 @@ class ExecTestCase(TestBase):
None, None, self.get_process_working_directory())
self.assertTrue(process, PROCESS_IS_VALID)
if self.TraceOn():
self.runCmd("settings show target.process.stop-on-exec", check=False)
if skip_exec:
self.dbg.HandleCommand("settings set target.process.stop-on-exec false")
def cleanup():
@ -94,6 +96,8 @@ class ExecTestCase(TestBase):
process.Continue()
if not skip_exec:
self.assertFalse(process.GetState() == lldb.eStateExited,
"Process should not have exited!")
self.assertTrue(process.GetState() == lldb.eStateStopped,
"Process should be stopped at __dyld_start")