-
Notifications
You must be signed in to change notification settings - Fork 341
[lldb] Fix regex in TestSwiftTaskSyntheticProvider #10307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lldb] Fix regex in TestSwiftTaskSyntheticProvider #10307
Conversation
@swift-ci test |
@swift-ci test |
@@ -21,7 +21,7 @@ def test_top_level_task(self): | |||
patterns=[ | |||
textwrap.dedent( | |||
r""" | |||
\(Task<\(\), Error>\) task = id:(\d+) flags:(?:running\|)?enqueued\|future \{ | |||
\(Task<\(\), Error>\) task = id:(\d+) flags:(?:running\|)?(?:enqueued\|)?future \{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I'm still confused by this regex.
Why is the |
part of the group?
What if enqueued is the last attribute?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- the flags are in a fixed order,
enqueued
will be afterrunning
(by design) - the flags are
|
separated, and ifenqueued
is present, then it will be followed by the|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I plan to revisit these tests. This change (llvm#131475) is one of the pieces I'm working on in spare time be able to structure these tests with more easy to read regex.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah.. because future
is always there. Makes sense.
@swift-ci test windows |
1 similar comment
@swift-ci test windows |
(cherry-picked from commit 2ec15cf)
(cherry-picked from commit 2ec15cf)
No description provided.