mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:58:11 +08:00
The StateType representation has been changed. Modify the test cases to accommodate.
llvm-svn: 116705
This commit is contained in:
@@ -58,7 +58,7 @@ class ArrayTypesTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint.
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped',
|
||||
substrs = ['state is stopped',
|
||||
'stop reason = breakpoint'])
|
||||
|
||||
# The breakpoint should have a hit count of 1.
|
||||
@@ -116,7 +116,7 @@ class ArrayTypesTestCase(TestBase):
|
||||
# Sanity check the print representation of process.
|
||||
proc = repr(self.process)
|
||||
self.expect(proc, msg="Process looks good", exe=False,
|
||||
substrs = ["state = Stopped",
|
||||
substrs = ["state = stopped",
|
||||
"executable = a.out"])
|
||||
|
||||
# The stop reason of the thread should be breakpoint.
|
||||
|
||||
@@ -52,7 +52,7 @@ class BitfieldsTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint.
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped',
|
||||
substrs = ['state is stopped',
|
||||
'stop reason = breakpoint'])
|
||||
|
||||
# The breakpoint should have a hit count of 1.
|
||||
|
||||
@@ -113,7 +113,7 @@ class BreakpointCommandTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint.
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped',
|
||||
substrs = ['state is stopped',
|
||||
'stop reason = breakpoint'])
|
||||
|
||||
# The breakpoint should have a hit count of 2.
|
||||
|
||||
@@ -80,7 +80,7 @@ class ClassTypesTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint.
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped',
|
||||
substrs = ['state is stopped',
|
||||
'stop reason = breakpoint'])
|
||||
|
||||
# The breakpoint should have a hit count of 1.
|
||||
@@ -127,7 +127,7 @@ class ClassTypesTestCase(TestBase):
|
||||
self.fail("SBTarget.LaunchProcess() failed")
|
||||
|
||||
if self.process.GetState() != lldb.eStateStopped:
|
||||
self.fail("Process should be in the 'Stopped' state, "
|
||||
self.fail("Process should be in the 'stopped' state, "
|
||||
"instead the actual state is: '%s'" %
|
||||
lldbutil.StateTypeString(self.process.GetState()))
|
||||
|
||||
@@ -167,7 +167,7 @@ class ClassTypesTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint.
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped',
|
||||
substrs = ['state is stopped',
|
||||
'stop reason = breakpoint'])
|
||||
|
||||
# The breakpoint should have a hit count of 1.
|
||||
|
||||
@@ -54,7 +54,7 @@ class IterateFrameAndDisassembleTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint.
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped',
|
||||
substrs = ['state is stopped',
|
||||
'stop reason = breakpoint'])
|
||||
|
||||
# We should be stopped on the ctor function of class C.
|
||||
|
||||
@@ -102,7 +102,7 @@ class ConditionalBreakTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint.
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped', 'stop reason = breakpoint'])
|
||||
substrs = ['state is stopped', 'stop reason = breakpoint'])
|
||||
|
||||
# The frame info for frame #0 points to a.out`c and its immediate caller
|
||||
# (frame #1) points to a.out`a.
|
||||
|
||||
@@ -43,7 +43,7 @@ class DeadStripTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint (breakpoint #1).
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped',
|
||||
substrs = ['state is stopped',
|
||||
'a.out`f1',
|
||||
'stop reason = breakpoint'])
|
||||
|
||||
@@ -55,7 +55,7 @@ class DeadStripTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint (breakpoint #3).
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped',
|
||||
substrs = ['state is stopped',
|
||||
'a.out`f3',
|
||||
'stop reason = breakpoint'])
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class EnumTypesTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint.
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped',
|
||||
substrs = ['state is stopped',
|
||||
'stop reason = breakpoint'])
|
||||
|
||||
# The breakpoint should have a hit count of 1.
|
||||
|
||||
@@ -36,7 +36,7 @@ class ForwardDeclarationTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint.
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped',
|
||||
substrs = ['state is stopped',
|
||||
'stop reason = breakpoint'])
|
||||
|
||||
# The breakpoint should have a hit count of 1.
|
||||
|
||||
@@ -41,7 +41,7 @@ class FunctionTypesTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint.
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped',
|
||||
substrs = ['state is stopped',
|
||||
'stop reason = breakpoint'])
|
||||
|
||||
# The breakpoint should have a hit count of 1.
|
||||
|
||||
@@ -41,7 +41,7 @@ class GlobalVariablesTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint.
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped',
|
||||
substrs = ['state is stopped',
|
||||
'stop reason = breakpoint'])
|
||||
|
||||
# The breakpoint should have a hit count of 1.
|
||||
|
||||
@@ -30,7 +30,7 @@ class LoadUnloadTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint and at a_function.
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped',
|
||||
substrs = ['state is stopped',
|
||||
'a_function',
|
||||
'stop reason = breakpoint'])
|
||||
|
||||
@@ -42,7 +42,7 @@ class LoadUnloadTestCase(TestBase):
|
||||
# The stop reason of the thread should be breakpoint and at a_function.
|
||||
self.runCmd("continue")
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped',
|
||||
substrs = ['state is stopped',
|
||||
'a_function',
|
||||
'stop reason = breakpoint'])
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ class SetValuesTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint.
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped',
|
||||
substrs = ['state is stopped',
|
||||
'stop reason = breakpoint'])
|
||||
|
||||
# The breakpoint should have a hit count of 1.
|
||||
|
||||
@@ -43,7 +43,7 @@ class SendSignalTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint.
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped',
|
||||
substrs = ['state is stopped',
|
||||
'stop reason = breakpoint'])
|
||||
|
||||
# The breakpoint should have a hit count of 1.
|
||||
@@ -52,7 +52,7 @@ class SendSignalTestCase(TestBase):
|
||||
|
||||
self.runCmd("process status")
|
||||
output = self.res.GetOutput()
|
||||
pid = re.match("Process (.*) Stopped", output).group(1)
|
||||
pid = re.match("Process (.*) stopped", output).group(1)
|
||||
|
||||
# After resuming the process, send it a SIGUSR1 signal.
|
||||
|
||||
@@ -73,7 +73,7 @@ class SendSignalTestCase(TestBase):
|
||||
# Make the interaction mode be synchronous again.
|
||||
self.dbg.SetAsync(False)
|
||||
self.expect("process status", STOPPED_DUE_TO_SIGNAL,
|
||||
startstr = "Process %s Stopped" % pid,
|
||||
startstr = "Process %s stopped" % pid,
|
||||
substrs = ['stop reason = signal SIGUSR1'])
|
||||
self.expect("thread backtrace", STOPPED_DUE_TO_SIGNAL,
|
||||
substrs = ['stop reason = signal SIGUSR1'])
|
||||
|
||||
@@ -42,10 +42,10 @@ class StdCXXDisassembleTestCase(TestBase):
|
||||
target = self.dbg.GetSelectedTarget()
|
||||
process = target.GetProcess()
|
||||
|
||||
# The process should be in a 'Stopped' state.
|
||||
# The process should be in a 'stopped' state.
|
||||
self.expect(repr(process), STOPPED_DUE_TO_BREAKPOINT, exe=False,
|
||||
substrs = ["a.out",
|
||||
"Stopped"])
|
||||
"stopped"])
|
||||
|
||||
# Disassemble the functions on the call stack.
|
||||
self.runCmd("thread backtrace")
|
||||
|
||||
@@ -35,7 +35,7 @@ class ThreadsStackTracesTestCase(TestBase):
|
||||
self.fail("SBTarget.LaunchProcess() failed")
|
||||
|
||||
if self.process.GetState() != lldb.eStateStopped:
|
||||
self.fail("Process should be in the 'Stopped' state, "
|
||||
self.fail("Process should be in the 'stopped' state, "
|
||||
"instead the actual state is: '%s'" %
|
||||
lldbutil.StateTypeString(self.process.GetState()))
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ class UnsignedTypesTestCase(TestBase):
|
||||
|
||||
# The stop reason of the thread should be breakpoint.
|
||||
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
|
||||
substrs = ['state is Stopped', 'stop reason = breakpoint'])
|
||||
substrs = ['state is stopped', 'stop reason = breakpoint'])
|
||||
|
||||
# The breakpoint should have a hit count of 1.
|
||||
self.expect("breakpoint list", BREAKPOINT_HIT_ONCE,
|
||||
|
||||
Reference in New Issue
Block a user