From 6459311c987009ec6e1d0374aa6a185fdfc0e003 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 51708748a04..85d28b41733 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();