Skip to content

Commit 0921abb

Browse files
committed
Disable Win32 key event test in GitHub Actions runs #2516
Since the upgrade of the default GitHub Actions runner for Windows to Windows Server 2025, the key event tests started to fail sporadically. Until a solution is found, this temporarily disables the tests to avoid that it hides actual issues when investigating the build results. Fixes #2516
1 parent 4d72e87 commit 0921abb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@
1818
import org.eclipse.swt.widgets.Event;
1919
import org.junit.jupiter.api.Disabled;
2020
import org.junit.jupiter.api.Test;
21+
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
2122

2223
/**
2324
* Automated Test Suite for class org.eclipse.swt.events.KeyEvent
2425
*
2526
* @see org.eclipse.swt.events.KeyEvent
2627
*/
2728
@SuppressWarnings("restriction")
29+
@DisabledIfEnvironmentVariable(named = "GITHUB_ACTIONS", matches = "true", disabledReason = "Windows Server 2025 incompatibility: https://github.com/eclipse-platform/eclipse.platform.swt/issues/2516")
2830
public class Test_org_eclipse_swt_events_KeyEvent extends KeyboardLayoutTest {
2931
// Windows layouts suitable for 'LoadKeyboardLayout()', obtained from 'GetKeyboardLayoutName()'
3032
static char[] LAYOUT_BENGALI = "00020445\0".toCharArray();

tests/org.eclipse.swt.tests.win32/META-INF/MANIFEST.MF

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Eclipse-BundleShape: dir
99
Bundle-RequiredExecutionEnvironment: JavaSE-17
1010
Automatic-Module-Name: org.eclipse.swt.tests.win32
1111
Import-Package: org.junit.jupiter.api;version="[5.13.0,6.0.0)",
12+
org.junit.jupiter.api.condition;version="[5.13.0,6.0.0)",
1213
org.junit.jupiter.params;version="[5.13.0,6.0.0)",
1314
org.junit.jupiter.params.provider;version="[5.13.0,6.0.0)",
1415
org.junit.platform.suite.api;version="[1.13.0,2.0.0)"

0 commit comments

Comments
 (0)