Skip to content

Some Test_org_eclipse_swt_events_KeyEvent tests are failing with Windows Server 2025 on GHA #2516

@HeikoKlare

Description

@HeikoKlare

Since GHA started to use Windows Server 2025 instead of Windows Server 2022, some tests of Test_org_eclipse_swt_events_KeyEvent are constantly failing in GHA runs.

  • testEnglishInternational_deadKey_Shift6
  • testGerman_deadKey_unmatched
  • testEnglishUs_CtrlBreak
  • testEnglishUs_numpad
  • testEnglishUs_stdKeys
  • testFrench_digits

For example, in PR #2470, the last run that still mentions Windows Server 2022 in the logs succeeded while from the first build after that Windows Server 2025 is mentioned in the logs and those tests fail.

org.opentest4j.AssertionFailedError: Test Shell lost focus (did you use keyboard/mouse while the test was running?)
	at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:38)
	at org.junit.jupiter.api.Assertions.fail(Assertions.java:138)
	at org.eclipse.swt.tests.win32.KeyboardLayoutTest.ensureShellFocused(KeyboardLayoutTest.java:363)
	at org.eclipse.swt.tests.win32.KeyboardLayoutTest.expectKeyEvents(KeyboardLayoutTest.java:510)
	at org.eclipse.swt.tests.win32.KeyboardLayoutTest.testKey(KeyboardLayoutTest.java:581)
	at org.eclipse.swt.tests.win32.KeyboardLayoutTest.testScanCode(KeyboardLayoutTest.java:591)
	at org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent.lambda$0(Test_org_eclipse_swt_events_KeyEvent.java:310)
	at org.eclipse.swt.tests.win32.KeyboardLayoutTest.runWithLayout(KeyboardLayoutTest.java:305)
	at org.eclipse.swt.tests.win32.Test_org_eclipse_swt_events_KeyEvent.testEnglishUs_stdKeys(Test_org_eclipse_swt_events_KeyEvent.java:262)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions