summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2012-10-23 12:33:45 (EDT)
committer Dani Megert2012-11-12 04:09:04 (EST)
commit19e93d9c606be22370bdd797f825b64440b066c8 (patch)
tree804d3005404bb4a5852e63f2ed4d2170d2aea803
parent7f04bd16489b48006d4a62d5256e959996bacbd0 (diff)
downloadeclipse.platform.text-19e93d9c606be22370bdd797f825b64440b066c8.zip
eclipse.platform.text-19e93d9c606be22370bdd797f825b64440b066c8.tar.gz
eclipse.platform.text-19e93d9c606be22370bdd797f825b64440b066c8.tar.bz2
Bug 392594: DNF in text.tests on Mac (1.7 VM crash on StackOverflowError with -XstartOnFirstThread)
-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 f0585cb..849f2e9 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;
@@ -430,6 +434,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;