Gradle hangs if worker process fails with e.g. OutOfMemory exception

As I mentioned here: http://forums.gradle.org/gradle/topics/builds_hangs_while_running_tests

it seems gradle doesn’t always behave nicely when the worker process fails with an exception.

I also have this problem. It is not security manager related. The builds process simply hangs with no cpu use. I can work around it by adding

test {

forkEvery 1000

}

The project has around 5000 tests.

Gradle 1.4 fixes several such problems. Can you try with 1.4-rc-2?

1.4-rc-2 fixed the issue. Thanks.