Skip to content

Conversation

@xuwei-k
Copy link
Member

@xuwei-k xuwei-k commented Oct 3, 2025

scripted test share same JVM instance.

run/daemon-exit test call System.exit(0) after 1 second.

Thread.sleep(1000)
System.exit(0)

System.exit(0) affect another scripted tests.

I think we should set run / fork := true or delete run/daemon-exit test because TrapExit no longer exists

before

  • test 1
  • test 2
  • run/daemon-exit
  • test 4
  • test 5
  • test 6 // after 1 second exit JVM by daemon-exit and then fail 😢

after

  • test 1
  • test 2
  • run/daemon-exit // set fork
  • test 4
  • test 5
  • test 6

@xuwei-k xuwei-k changed the title fix run/daemon-exit test [1.x] fix run/daemon-exit test Oct 3, 2025
@xuwei-k xuwei-k requested a review from eed3si9n October 3, 2025 06:16
@eed3si9n eed3si9n merged commit b536847 into sbt:1.11.x Oct 3, 2025
10 checks passed
@xuwei-k xuwei-k deleted the daemon-exit-fork branch October 3, 2025 06:24
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.

2 participants