Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Jan 7, 2025
1 parent 2635522 commit e9c841a
Showing 1 changed file with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,21 @@ object RunBackgroundTests extends UtestIntegrationTestSuite {
eventually { probeLockAvailable(lock) }
}
test("clean") - integrationTest { tester =>
import tester._
val lock = os.temp()
val stop = os.temp()
os.remove(stop)
eval(("foo.runBackground", lock, stop))
eventually { !probeLockAvailable(lock) }
if (!mill.main.client.Util.isWindows) {
import tester._
val lock = os.temp()
val stop = os.temp()
os.remove(stop)
eval(("foo.runBackground", lock, stop))
eventually {
!probeLockAvailable(lock)
}

eval(("clean", "foo.runBackground"))
eventually { probeLockAvailable(lock) }
eval(("clean", "foo.runBackground"))
eventually {
probeLockAvailable(lock)
}
}
}
}
}

0 comments on commit e9c841a

Please sign in to comment.