Skip to content

If tests loops, the process isn't stopped even when "stop" is pressed #1389

@sudo97

Description

@sudo97

Describe the bug
When my test function in XCTest goes into infinite loop, one of the tests hangs, and even clicking "stop" icon doesn't really stop it (I still see it in the activity monitor)

To Reproduce
Steps to reproduce the behavior:

  1. Create a test suite, write a test function with XCTest
  2. Add while true {}
  3. Run it by clicking |> symbol.
  4. See it not stopping (expecte).
  5. Click the square button. It reports as stopped, but process is still there in the activity monitor

Expected behavior
I assume it should stop the process

Environment

  • OS: MacOS 15.3
  • Swift version:
swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.0
  • Visual Studio Code version: Cursor version 0.45.11, VSCode Version 1.96.2
  • vscode-swift version: 2.0.0

Additional context

  1. test started
Image
  1. clicking stop
Image
  1. clicked stop. shows as stopped
Image
  1. activity monitor shows the process running
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Needs Verification

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions