While trying to track down some intermittent test failures in recent kaffe I found a problem in gnu/testlet/java/lang/Thread/contextClassLoader.java. When testing that context class loaders gets inherited correctly the mauve test assumes that the first thread will complete before the data is set up for the next one. When new thread execution for some reason is slow the test will sometimes fail. The attached patch solves the problem by waiting for the first thread to finish before the next one is set up. /noa