Must call Thread.stop *before* status.timedOut, as JUnitStatus actually throws an assertion error

git-svn-id: svn://10.0.0.236/trunk@237587 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
szegedia%freemail.hu
2007-10-11 13:50:44 +00:00
parent fae8390f3d
commit dc20249155

View File

@@ -300,14 +300,15 @@ class ShellTest {
}
}
}, jsFile.getPath());
t.setDaemon(true);
t.start();
t.join(parameters.getTimeoutMilliseconds());
synchronized(testState)
{
if(!testState.finished)
{
status.timedOut();
t.stop();
status.timedOut();
}
}
int expectedExitCode = 0;