mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 01:29:52 +00:00
Ted pointed out that some of test tests that are enabling packet
logging when the testsuite is run with trace mode enabled are leaving the logging enabled after the tests have finished. That state isn't cleared in a --no-multiprocess testsuite run. llvm-svn: 360480
This commit is contained in:
parent
849ef823df
commit
18ba8947a6
@ -109,9 +109,7 @@ class TestArmRegisterDefinition(GDBRemoteTestBase):
|
||||
|
||||
self.server.responder = MyResponder()
|
||||
if self.TraceOn():
|
||||
interp = self.dbg.GetCommandInterpreter()
|
||||
result = lldb.SBCommandReturnObject()
|
||||
interp.HandleCommand("log enable gdb-remote packets", result)
|
||||
self.runCmd("log enable gdb-remote packets")
|
||||
self.dbg.SetDefaultArchitecture("armv7em")
|
||||
target = self.dbg.CreateTargetWithFileAndArch(None, None)
|
||||
|
||||
@ -128,3 +126,6 @@ class TestArmRegisterDefinition(GDBRemoteTestBase):
|
||||
|
||||
pc_valobj = process.GetThreadAtIndex(0).GetFrameAtIndex(0).FindRegister("pc")
|
||||
self.assertEqual(pc_valobj.GetValueAsUnsigned(), 0x0800d22e)
|
||||
|
||||
if self.TraceOn():
|
||||
self.runCmd("log disable gdb-remote packets")
|
||||
|
@ -40,9 +40,7 @@ class TestNoWatchpointSupportInfo(GDBRemoteTestBase):
|
||||
|
||||
self.server.responder = MyResponder()
|
||||
if self.TraceOn():
|
||||
interp = self.dbg.GetCommandInterpreter()
|
||||
result = lldb.SBCommandReturnObject()
|
||||
interp.HandleCommand("log enable gdb-remote packets", result)
|
||||
self.runCmd("log enable gdb-remote packets")
|
||||
self.dbg.SetDefaultArchitecture("x86_64")
|
||||
target = self.dbg.CreateTargetWithFileAndArch(None, None)
|
||||
|
||||
@ -62,3 +60,7 @@ class TestNoWatchpointSupportInfo(GDBRemoteTestBase):
|
||||
err.GetDescription(strm)
|
||||
print("watchpoint failed: %s" % strm.GetData())
|
||||
self.assertTrue(wp.IsValid())
|
||||
|
||||
if self.TraceOn():
|
||||
self.runCmd("log disable gdb-remote packets")
|
||||
|
||||
|
@ -44,3 +44,6 @@ class TestStopPCs(GDBRemoteTestBase):
|
||||
self.assertEqual(th1.GetThreadID(), 0x2ff0d)
|
||||
self.assertEqual(th0.GetFrameAtIndex(0).GetPC(), 0x10001bc00)
|
||||
self.assertEqual(th1.GetFrameAtIndex(0).GetPC(), 0x10002bc00)
|
||||
|
||||
if self.TraceOn():
|
||||
self.runCmd("log disable gdb-remote packets")
|
||||
|
@ -114,7 +114,8 @@ class TestTargetXMLArch(GDBRemoteTestBase):
|
||||
interp = self.dbg.GetCommandInterpreter()
|
||||
result = lldb.SBCommandReturnObject()
|
||||
if self.TraceOn():
|
||||
interp.HandleCommand("log enable gdb-remote packets", result)
|
||||
self.runCmd("log enable gdb-remote packets")
|
||||
|
||||
target = self.dbg.CreateTarget('')
|
||||
self.assertEqual('', target.GetTriple())
|
||||
process = self.connect(target)
|
||||
@ -122,3 +123,6 @@ class TestTargetXMLArch(GDBRemoteTestBase):
|
||||
interp.HandleCommand("target list", result)
|
||||
print(result.GetOutput())
|
||||
self.assertTrue(target.GetTriple().startswith('x86_64-unknown-unknown'))
|
||||
|
||||
if self.TraceOn():
|
||||
self.runCmd("log disable gdb-remote packets")
|
||||
|
Loading…
Reference in New Issue
Block a user