Skip to content
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

Cancelling an XCTest run does not terminate underlying XCTest process on Windows #8085

Open
ahoppen opened this issue Oct 31, 2024 · 1 comment
Labels

Comments

@ahoppen
Copy link
Member

ahoppen commented Oct 31, 2024

When you run swift test with XCTests on Windows and one of the tests hangs, then Ctrl-C on swift test, then the .xctest bundle continues running. This is particularly confusing because you can’t build the project again since the execution of the .xctest bundle still has exclusive access to the .xctest file and thus the linker can’t write out a new .xctest bundle, complaining that you don’t have sufficient permission.

@dschaefer2
Copy link
Member

Interesting. Properly handling Ctrl-C on Windows is pretty different from pty. I had to deal with that many years a go when trying to cancel builds from a modelling tool we were working on. I'll have to read through the win32 docs to jog my memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants