Skip to content

Commit 490d0a2

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 490d0a2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*******************************************************************************/
1414
package org.eclipse.swt.tests.win32;
1515

16+
import static org.junit.Assume.assumeFalse;
1617
import static org.junit.jupiter.api.Assertions.fail;
1718

1819
import java.util.ArrayList;
@@ -222,6 +223,7 @@ public boolean isExtended() {
222223

223224
@BeforeEach
224225
public void setUp(TestInfo testInfo) {
226+
assumeFalse("Not executed on GitHub Actions", System.getProperty("GITHUB_ACTIONS") != null);
225227
this.testName = testInfo.getDisplayName();
226228
display = new Display();
227229
shell = new Shell();

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Require-Bundle: org.eclipse.swt
88
Eclipse-BundleShape: dir
99
Bundle-RequiredExecutionEnvironment: JavaSE-17
1010
Automatic-Module-Name: org.eclipse.swt.tests.win32
11-
Import-Package: org.junit.jupiter.api;version="[5.13.0,6.0.0)",
11+
Import-Package: org.junit,
12+
org.junit.jupiter.api;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)