The test is failing because it cannot find foo1.jar. It then gets into a bad state and hangs until the test harness interrupts it.
java.io.FileNotFoundException: foo1.jar (No such file or directory)
at java.io.FileInputStream.open(Native Method)
result: Error. Program `/java/re/jdk/8/latest/binaries/solaris-i586/bin/java' interrupted! (timed out
But the test code opening foo1.jar hasn't changed? Guess what, this test previously had a @build tag and no @run tag, so was only every compiling. It looks like it never ran before!
The solution is for the test to find foo1.jar in the test.src.
FileInputStream fin = new FileInputStream(
new File(System.getProperty("test.src", "."), "foo1.jar"));