Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351277 - testSwitchThreadCannotBeInterrupted freezes TestSuite
Summary: testSwitchThreadCannotBeInterrupted freezes TestSuite
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: Demo (show other bugs)
Version: 1.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.5 M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-06 04:21 EDT by Holger Staudacher CLA
Modified: 2011-08-09 13:15 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.