Commit 2e1e80c
committed
[lldb] Support ordered patterns in lldbtest.expect (llvm#131475)
Change `lldbtest.expect` to require the regexes in `patterns` be found in order – when the
`ordered` parameter is true. This matches the behavior of `substrs`.
The `ordered` parameter is true by default, so this change also fixes tests by either
tweaking the patterns to work in order, or by setting `ordered=False`.
I have often wanted to test with `patterns` and also verify the order. This change
allows that.
(cherry picked from commit 6d2b828)1 parent be33180 commit 2e1e80c
File tree
9 files changed
+27
-22
lines changed- lldb
- packages/Python/lldbsuite/test
- test/API
- functionalities
- alias
- breakpoint/breakpoint_locations
- data-formatter
- data-formatter-objc
- data-formatter-stl/generic/unordered
- root-reference-children
- lang
- cpp/signed_types
- objc/foundation
- source-manager
9 files changed
+27
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2330 | 2330 | | |
2331 | 2331 | | |
2332 | 2332 | | |
2333 | | - | |
2334 | | - | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
2335 | 2336 | | |
2336 | 2337 | | |
2337 | 2338 | | |
| |||
2434 | 2435 | | |
2435 | 2436 | | |
2436 | 2437 | | |
2437 | | - | |
2438 | | - | |
| 2438 | + | |
2439 | 2439 | | |
| 2440 | + | |
2440 | 2441 | | |
2441 | 2442 | | |
2442 | 2443 | | |
| |||
2447 | 2448 | | |
2448 | 2449 | | |
2449 | 2450 | | |
| 2451 | + | |
2450 | 2452 | | |
2451 | | - | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
2452 | 2457 | | |
2453 | 2458 | | |
2454 | 2459 | | |
2455 | 2460 | | |
2456 | | - | |
2457 | | - | |
| 2461 | + | |
| 2462 | + | |
2458 | 2463 | | |
2459 | 2464 | | |
2460 | 2465 | | |
2461 | | - | |
2462 | | - | |
2463 | | - | |
2464 | 2466 | | |
2465 | 2467 | | |
2466 | 2468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | | - | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
| 125 | + | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
0 commit comments