Commit 0fc9046
committed
Fix recurring test failure in PlatformUITest#testCreateAndRunWorkbench #1517
The RCPTestWorkbenchAdvisor uses static fields to track the state of
startup operations. These fields were not reset between test runs.
If PlatformUITest.testCreateAndRunWorkbench is run multiple times
(e.g. in a suite or during repeated test execution), the 'started'
flag would remain 'true' from the previous run, causing assertions
in subsequent runs to fail (as operations would incorrectly report
running after startup).
This change resets 'started' and the result flags to their initial
state in preStartup().1 parent e15e9bf commit 0fc9046
File tree
1 file changed
+9
-0
lines changed- tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util
1 file changed
+9
-0
lines changedLines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
130 | 139 | | |
131 | 140 | | |
132 | 141 | | |
| |||
0 commit comments