From b1c5b57b5437763b119212c89564f3d6923d022b Mon Sep 17 00:00:00 2001 From: Mehmet Emin Karaman Date: Fri, 6 Dec 2024 14:05:12 +0100 Subject: [PATCH] Disable DirtyStateEditorSupportIntegrationTest.testModifyFileInExternEditor() test for Mac operating system --- .../tests/editor/DirtyStateEditorSupportIntegrationTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org.eclipse.xtext.ui.tests/src-longrunning/org/eclipse/xtext/ui/tests/editor/DirtyStateEditorSupportIntegrationTest.java b/org.eclipse.xtext.ui.tests/src-longrunning/org/eclipse/xtext/ui/tests/editor/DirtyStateEditorSupportIntegrationTest.java index 7e5799bebb6..b9a72aa62e3 100644 --- a/org.eclipse.xtext.ui.tests/src-longrunning/org/eclipse/xtext/ui/tests/editor/DirtyStateEditorSupportIntegrationTest.java +++ b/org.eclipse.xtext.ui.tests/src-longrunning/org/eclipse/xtext/ui/tests/editor/DirtyStateEditorSupportIntegrationTest.java @@ -8,6 +8,8 @@ */ package org.eclipse.xtext.ui.tests.editor; +import static org.junit.Assume.*; + import java.io.File; import java.io.FileWriter; import java.util.ArrayList; @@ -130,6 +132,9 @@ public void testUndoRedo() throws Exception { * @see https://github.com/eclipse-xtext/xtext/issues/2385 */ @Test public void testModifyFileInExternEditor() throws Exception { + // This test is flaky on mac operating systems maven build. + assumeFalse(System.getProperty("os.name").startsWith("Mac")); + IXtextDocument document = editor.getDocument(); Display.getDefault().readAndDispatch();