8000 [6.1][Backtracing] Add warning suppression option, enable it for tests. by al45tair · Pull Request #81803 · swiftlang/swift · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[6.1][Backtracing] Add warning suppression option, enable it for tests. #81803

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

Merged
merged 1 commit into from
Jun 11, 2025

Conversation

al45tair
Copy link
Contributor

[Backtracing] Add warning suppression option, enable it for tests.

The backtracing code will warn you if you attempt to forcibly enable backtracing for a privileged executable. This is apparently upsetting the Driver/filelists.swift test.

Since we want to force it on for tests, so that we will definitely get backtraces, add an option to suppress warning messages, and turn that on for tests as well.

rdar://152074531

[Backtracing] Add warning suppression option, enable it for tests.
@al45tair al45tair requested a review from a team as a code owner May 28, 2025 11:24
@al45tair
Copy link
Contributor Author

Explanation: Some tests are failing because of warning messages generated by the Swift runtime when you try to forcibly enable backtracing for a privileged executable. These are triggering because we force-enable the backtracer in lit.cfg. This has already been fixed on main (and the fix is in 6.2). It apparently needs fixing on the 6.1 branch also.
Risk: Low. This just adds a setting to disable a warning. The new code is already present on main and 6.2.
Original PR: #79390
Reviewed by: @mikeash
Resolves: rdar://152074531 (original was 144497613).
Tests: This fixes various tests.

@al45tair
Copy link
Contributor Author

@swift-ci Please test

@al45tair al45tair merged commit e55f033 into swiftlang:release/6.1 Jun 11, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0