OSDN Git Service

[lldb/Test] Fix more substr ordering issues that only repro on the bot
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 31 Jan 2020 22:42:41 +0000 (14:42 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 31 Jan 2020 22:42:41 +0000 (14:42 -0800)
lldb/packages/Python/lldbsuite/test/commands/watchpoints/watchpoint_commands/command/TestWatchpointCommandLLDB.py
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py

index b604d56..432bd0d 100644 (file)
@@ -86,8 +86,8 @@ class WatchpointLLDBCommandTestCase(TestBase):
         self.expect(
             "watchpoint list -v",
             substrs=[
-                'old value: 0', 'new value: 1', 'hw_index = 0',
-                'hit_count = 1', 'ignore_count = 0'
+                'old value: 0', 'new value: 1', 'hit_count = 1',
+                'ignore_count = 0'
             ])
 
         # The watchpoint command "forced" our global variable 'cookie' to
index 94d1b57..0d991e5 100644 (file)
@@ -147,41 +147,27 @@ class StdMapDataFormatterTestCase(TestBase):
 
         self.runCmd("c")
 
-        self.expect("frame variable si",
-                    substrs=['map has 5 items',
-                             '[0] = ',
-                             'first = \"zero\"',
-                             'second = 0',
-                             '[1] = ',
-                             'first = \"one\"',
-                             'second = 1',
-                             '[2] = ',
-                             'first = \"two\"',
-                             'second = 2',
-                             '[3] = ',
-                             'first = \"three\"',
-                             'second = 3',
-                             '[4] = ',
-                             'first = \"four\"',
-                             'second = 4'])
-
-        self.expect("p si",
-                    substrs=['map has 5 items',
-                             '[0] = ',
-                             'first = \"zero\"',
-                             'second = 0',
-                             '[1] = ',
-                             'first = \"one\"',
-                             'second = 1',
-                             '[2] = ',
-                             'first = \"two\"',
-                             'second = 2',
-                             '[3] = ',
-                             'first = \"three\"',
-                             'second = 3',
-                             '[4] = ',
-                             'first = \"four\"',
-                             'second = 4'])
+        self.expect(
+            "frame variable si",
+            substrs=[
+                'map has 5 items',
+                '[0] = (first = "four", second = 4)',
+                '[1] = (first = "one", second = 1)',
+                '[2] = (first = "three", second = 3)',
+                '[3] = (first = "two", second = 2)',
+                '[4] = (first = "zero", second = 0)',
+            ])
+
+        self.expect(
+            "p si",
+            substrs=[
+                'map has 5 items',
+                '[0] = (first = "four", second = 4)',
+                '[1] = (first = "one", second = 1)',
+                '[2] = (first = "three", second = 3)',
+                '[3] = (first = "two", second = 2)',
+                '[4] = (first = "zero", second = 0)',
+            ])
 
         # check access-by-index
         self.expect("frame variable si[0]",