The StateType representation has been changed.  Modify the test cases to accommodate.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@116705 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/array_types/TestArrayTypes.py b/test/array_types/TestArrayTypes.py
index 32d999d..d03feec 100644
--- a/test/array_types/TestArrayTypes.py
+++ b/test/array_types/TestArrayTypes.py
@@ -58,7 +58,7 @@
 
         # 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 @@
         # 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.
diff --git a/test/bitfields/TestBitfields.py b/test/bitfields/TestBitfields.py
index 0c7a4fe..076a750 100644
--- a/test/bitfields/TestBitfields.py
+++ b/test/bitfields/TestBitfields.py
@@ -52,7 +52,7 @@
 
         # 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.
diff --git a/test/breakpoint_command/TestBreakpointCommand.py b/test/breakpoint_command/TestBreakpointCommand.py
index 451c344..1dfc23f 100644
--- a/test/breakpoint_command/TestBreakpointCommand.py
+++ b/test/breakpoint_command/TestBreakpointCommand.py
@@ -113,7 +113,7 @@
 
         # 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.
diff --git a/test/class_types/TestClassTypes.py b/test/class_types/TestClassTypes.py
index ebf007a..e466ada 100644
--- a/test/class_types/TestClassTypes.py
+++ b/test/class_types/TestClassTypes.py
@@ -80,7 +80,7 @@
 
         # 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 @@
             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 @@
 
         # 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.
diff --git a/test/class_types/TestClassTypesDisassembly.py b/test/class_types/TestClassTypesDisassembly.py
index 74dc3e0..565438b 100644
--- a/test/class_types/TestClassTypesDisassembly.py
+++ b/test/class_types/TestClassTypesDisassembly.py
@@ -54,7 +54,7 @@
 
         # 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.
diff --git a/test/conditional_break/TestConditionalBreak.py b/test/conditional_break/TestConditionalBreak.py
index c2ed8ae..4546715 100644
--- a/test/conditional_break/TestConditionalBreak.py
+++ b/test/conditional_break/TestConditionalBreak.py
@@ -102,7 +102,7 @@
 
         # 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.
diff --git a/test/dead-strip/TestDeadStrip.py b/test/dead-strip/TestDeadStrip.py
index 7061e01..f1ed176 100644
--- a/test/dead-strip/TestDeadStrip.py
+++ b/test/dead-strip/TestDeadStrip.py
@@ -43,7 +43,7 @@
 
         # 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 @@
 
         # 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'])
 
diff --git a/test/enum_types/TestEnumTypes.py b/test/enum_types/TestEnumTypes.py
index bea2c0c..a02c061 100644
--- a/test/enum_types/TestEnumTypes.py
+++ b/test/enum_types/TestEnumTypes.py
@@ -43,7 +43,7 @@
 
         # 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.
diff --git a/test/forward/TestForwardDeclaration.py b/test/forward/TestForwardDeclaration.py
index 217c28d..41102bd 100644
--- a/test/forward/TestForwardDeclaration.py
+++ b/test/forward/TestForwardDeclaration.py
@@ -36,7 +36,7 @@
 
         # 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.
diff --git a/test/function_types/TestFunctionTypes.py b/test/function_types/TestFunctionTypes.py
index 524c57c..6699717 100644
--- a/test/function_types/TestFunctionTypes.py
+++ b/test/function_types/TestFunctionTypes.py
@@ -41,7 +41,7 @@
 
         # 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.
diff --git a/test/global_variables/TestGlobalVariables.py b/test/global_variables/TestGlobalVariables.py
index a913ef0..4bb7f4f 100644
--- a/test/global_variables/TestGlobalVariables.py
+++ b/test/global_variables/TestGlobalVariables.py
@@ -41,7 +41,7 @@
 
         # 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.
diff --git a/test/load_unload/TestLoadUnload.py b/test/load_unload/TestLoadUnload.py
index d690dc3..051be2d 100644
--- a/test/load_unload/TestLoadUnload.py
+++ b/test/load_unload/TestLoadUnload.py
@@ -30,7 +30,7 @@
 
         # 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 @@
         # 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'])
 
diff --git a/test/set_values/TestSetValues.py b/test/set_values/TestSetValues.py
index d8b45a2..ec0375f 100644
--- a/test/set_values/TestSetValues.py
+++ b/test/set_values/TestSetValues.py
@@ -65,7 +65,7 @@
 
         # 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.
diff --git a/test/signal/TestSendSignal.py b/test/signal/TestSendSignal.py
index eda5c1d..f0a6fd5 100644
--- a/test/signal/TestSendSignal.py
+++ b/test/signal/TestSendSignal.py
@@ -43,7 +43,7 @@
 
         # 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 @@
 
         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 @@
         # 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'])
diff --git a/test/stl/TestStdCXXDisassembly.py b/test/stl/TestStdCXXDisassembly.py
index 5b3d56a..4f0a237 100644
--- a/test/stl/TestStdCXXDisassembly.py
+++ b/test/stl/TestStdCXXDisassembly.py
@@ -42,10 +42,10 @@
         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")
diff --git a/test/threads/TestPrintStackTraces.py b/test/threads/TestPrintStackTraces.py
index 18c761d..7e985aa 100644
--- a/test/threads/TestPrintStackTraces.py
+++ b/test/threads/TestPrintStackTraces.py
@@ -35,7 +35,7 @@
             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()))
 
diff --git a/test/unsigned_types/TestUnsignedTypes.py b/test/unsigned_types/TestUnsignedTypes.py
index 1f95e80..a18bc60 100644
--- a/test/unsigned_types/TestUnsignedTypes.py
+++ b/test/unsigned_types/TestUnsignedTypes.py
@@ -44,7 +44,7 @@
 
         # 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,