Skip to content

Conversation

@Mephistophiles
Copy link
Contributor

When test output contains extra data (such as debug logs), tests can become flaky if there are strings like '12':
the problem is that after successfully finding '1' in '12', the pattern '^2$' will find a full match in '2' following '1' (mentioned in #165899).

To prevent this, use patterns that search for '1' or '2' as standalone strings on their own line.

When test output contains extra data (such as debug logs), tests can
become flaky if there are strings like '12':
the problem is that after successfully finding '1' in '12', the pattern
'^2$' will find a full match in '2' following '1' (mentioned in llvm#165899).

To prevent this, use patterns that search for '1' or '2' as standalone
strings on their own line.
@llvmbot llvmbot added compiler-rt compiler-rt:cfi Control Flow Integrity labels Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler-rt:cfi Control Flow Integrity compiler-rt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants