Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2012-10-23 16:33:45 +0000
committerMarkus Keller2012-10-23 16:33:45 +0000
commite7cce033b8f4b5a86b0c4a457d1f0abb293930e2 (patch)
treeb101a8de800fafbbe1254f63f4bda83d81ff87c2
parent43580e947ec1a3976d4ffba0ba2108d27fec4536 (diff)
downloadeclipse.platform.text-e7cce033b8f4b5a86b0c4a457d1f0abb293930e2.tar.gz
eclipse.platform.text-e7cce033b8f4b5a86b0c4a457d1f0abb293930e2.tar.xz
eclipse.platform.text-e7cce033b8f4b5a86b0c4a457d1f0abb293930e2.zip
Bug 392594: DNF in text.tests on Mac (1.7 VM crash on StackOverflowError with -XstartOnFirstThread)v20121023-163345I20121024-1200I20121024-1130
-rw-r--r--org.eclipse.text.tests/src/org/eclipse/text/tests/FindReplaceDocumentAdapterTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.text.tests/src/org/eclipse/text/tests/FindReplaceDocumentAdapterTest.java b/org.eclipse.text.tests/src/org/eclipse/text/tests/FindReplaceDocumentAdapterTest.java
index 8fad3f51e..1fabeb986 100644
--- a/org.eclipse.text.tests/src/org/eclipse/text/tests/FindReplaceDocumentAdapterTest.java
+++ b/org.eclipse.text.tests/src/org/eclipse/text/tests/FindReplaceDocumentAdapterTest.java
@@ -20,6 +20,8 @@ import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
+import org.eclipse.core.runtime.Platform;
+
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.Document;
import org.eclipse.jface.text.FindReplaceDocumentAdapter;
@@ -33,6 +35,8 @@ import org.eclipse.jface.text.Region;
*/
public class FindReplaceDocumentAdapterTest extends TestCase {
+ private static final boolean BUG_392594= true;
+
private Document fDocument;
@@ -443,6 +447,10 @@ public class FindReplaceDocumentAdapterTest extends TestCase {
public void testRegexFindStackOverflow_fail() throws Exception {
// test for https://bugs.eclipse.org/bugs/show_bug.cgi?id=102699
+
+ if (BUG_392594 && Platform.OS_MACOSX.equals(Platform.getOS()))
+ return; // VM crash on the Mac, see https://bugs.eclipse.org/392594
+
FindReplaceDocumentAdapter adapter= new FindReplaceDocumentAdapter(fDocument);
int len= 100000;

Back to the top