diff options
author | Arthur Eubanks <aeubanks@google.com> | 2022-10-12 16:07:44 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2022-10-14 11:16:51 -0700 |
commit | 021a3d5a3f73c59d7e43857c0230e07fa602d948 (patch) | |
tree | 2569ac39061942adb92ed14f5e74a0a87fb337c6 /lldb/packages/Python/lldbsuite/test/lldbtest.py | |
parent | 2c7b7eca85c2ccc9b0d5c65169213ce499652f92 (diff) | |
download | llvm-021a3d5a3f73c59d7e43857c0230e07fa602d948.zip llvm-021a3d5a3f73c59d7e43857c0230e07fa602d948.tar.gz llvm-021a3d5a3f73c59d7e43857c0230e07fa602d948.tar.bz2 |
[lldb] Start from end of previous substr when checking ordered substrs
I'm trying to add a test which tests that the same substr occurs twice in a row, but it matches even if only one of the substr occurs.
This found a bug in concurrent_base.py.
Reviewed By: DavidSpickett
Differential Revision: https://reviews.llvm.org/D135826
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lldbtest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py index 1ea29b3..2d054f9 100644 --- a/lldb/packages/Python/lldbsuite/test/lldbtest.py +++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py @@ -2358,7 +2358,7 @@ FileCheck output: start = 0 for substr in substrs: index = output[start:].find(substr) - start = start + index if ordered and matching else 0 + start = start + index + len(substr) if ordered and matching else 0 matched = index != -1 log_lines.append("{} sub string: \"{}\" ({})".format( expecting_str, substr, found_str(matched))) |