Commit 9740f8e
committed
Explicitly terminate the Clipboard remote application
The old code was unintentionally relying on destroyForcibly alone
to terminate the remote process. This had a race condition that
when the temp directory needed to be deleted at the end of the test
the process may not have completed being terminated.
Therefore explicitly destroy/terminate the remote, and add some
asserts so that we have explicit test failure if the remote is not
finished terminating before `stopRemoteClipboardCommands` returns.
Fixes #25681 parent c781f19 commit 9740f8e
File tree
2 files changed
+15
-1
lines changed- tests/org.eclipse.swt.tests
- JUnit Tests/org/eclipse/swt/tests/junit
- data/clipboard
2 files changed
+15
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
| 228 | + | |
227 | 229 | | |
228 | 230 | | |
229 | 231 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
46 | 58 | | |
47 | 59 | | |
48 | 60 | | |
| |||
0 commit comments