Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351277

Summary: testSwitchThreadCannotBeInterrupted freezes TestSuite
Product: [RT] RAP Reporter: Holger Staudacher <holger.staudacher>
Component: DemoAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.5   
Target Milestone: 1.5 M1   
Hardware: All   
OS: All   
Whiteboard:

Description Holger Staudacher CLA 2011-07-06 04:21:26 EDT
The last days I faced an ugly issue when executing the RWTAllTestSuite. There is one test that randomly freezes the test suite. This is the test method:
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle_Test.testSwitchThreadCannotBeInterrupted()

Sadly it happens randomly and I can't reproduce it reliable.
Comment 1 Ralf Sternberg CLA 2011-08-09 13:15:26 EDT
Apparently, the test tried to unblock the ui thread after the actual test by calling switchThread() from the test thread. When the ui had not terminated at that point this put the main thread into wait. Fixed by calling notifyAll on the lock instead.
Changes are in CVS HEAD and 1.4 Maintenance branch.