mirror of https://github.com/sbt/sbt.git
Add scripted test for closing classloaders
https://github.com/sbt/sbt/issues/5075 reports that sbt 1.3.0 has a regression for in process run. In sbt 1.3.0, we close the classloader that invokes the main method before all of the daemon threads complete. This adds a scripted test that fails due to this regression.
This commit is contained in:
parent
5e44479dfb
commit
c4045e7575
|
|
@ -0,0 +1,10 @@
|
||||||
|
object Main extends App {
|
||||||
|
class Foo
|
||||||
|
new Thread {
|
||||||
|
override def run(): Unit = {
|
||||||
|
Thread.sleep(500)
|
||||||
|
try new Foo
|
||||||
|
catch { case t: Throwable => sys.exit(1) }
|
||||||
|
}
|
||||||
|
}.start()
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
> run
|
||||||
Loading…
Reference in New Issue