Skip to content

Commit e580df7

Browse files
committed
Adapt Test_org_eclipse_swt_events_KeyEvent for Windows Server 2025 #2516
This is WiP to analyze the issue with the Test_org_eclipse_swt_events_KeyEvent tests on Windows Server 2025.
1 parent 35119f0 commit e580df7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/org.eclipse.swt.tests.win32/JUnit Tests/org/eclipse/swt/tests/win32/KeyboardLayoutTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,11 @@ protected void ensureShellFocused() {
360360
// Note that `Shell.isFocusControl()` still returns `true` even if a
361361
// different app is focused
362362
if (shell.handle != OS.GetForegroundWindow()) {
363+
System.out.println("handle of current shell: " + OS.GetForegroundWindow());
364+
System.out.println("handle of tracked shell: " + shell.handle);
365+
for (Shell shell : display.getShells()) {
366+
System.out.println(shell.handle + ": " + shell.toString());
367+
}
363368
fail("Test Shell lost focus (did you use keyboard/mouse while the test was running?)");
364369
}
365370
}

0 commit comments

Comments
 (0)