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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user