- **Explanation**:
Backport PR #1916 to Swift 6.4.1. Per-test-case repetition now records
an iteration only when the recorded issue is a failure
(`Issue.isFailure`), so known and warning issues no longer trigger or
terminate repetition incorrectly.
- **Scope**:
Behavioral correctness fix only. No public API, ABI, event schema, or
command-line changes.
- **Issues**:
Fixes #1915
- **Original PRs**:
[swiftlang/swift-testing#1916](https://github.com/swiftlang/swift-testing/pull/1916)
- **Risk**:
Low. The change is limited to failure classification for repetition and
preserves repetition for error-level failures. Regression coverage is
included.
- **Testing**:
- `swift test --filter TestCaseIterationTests` — 9 tests passed on
`release/6.4.1`
- `git diff --check`
- **Reviewers**:
The original PR was approved by @stmontgomery and @harlanhaskins.