Project: Eclipse_Platform_UI
Bug 74185 UIJobTest has potential concurrency failure
Reported: 2004-09-17 10:44:34 | Status: verified fixed

The UIJobTest is testing flags prematurely. The assertions wait until while (!testJobRan) { } Is complete testJobRan is set to true within testJob so it is possible for the while loop to break out before the join is completed here: delayJob.join(); thereby checking the flag before the job is done and preventing backgroundThreadFinished from getting set. Removing this test altogether fixes this and keeps the main test (for a join). Also all of the booleans should be volatile to prevent copies being created in dual processors.

Files changed in fix:
tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/UIJobTest.java