From fdd5b4e283bc0b6e02d6e9505d8f589df4baf1cb Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 19 Apr 2005 12:01:08 +0000 Subject: changed cutoff --- util/testsrc/org/aspectj/util/LangUtilTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'util/testsrc') diff --git a/util/testsrc/org/aspectj/util/LangUtilTest.java b/util/testsrc/org/aspectj/util/LangUtilTest.java index 22a55f295..8877815ee 100644 --- a/util/testsrc/org/aspectj/util/LangUtilTest.java +++ b/util/testsrc/org/aspectj/util/LangUtilTest.java @@ -223,12 +223,13 @@ public class LangUtilTest extends TestCase { public void testElideEndingLines() { StringBuffer stackBuffer = LangUtil.stackToString(new RuntimeException(""), true); - LangUtil.elideEndingLines(LangUtil.StringChecker.TEST_PACKAGES, stackBuffer, 100); + LangUtil.elideEndingLines(LangUtil.StringChecker.TEST_PACKAGES, stackBuffer, 10); String result = stackBuffer.toString(); + if (-1 == result.indexOf("(... ")) { // brittle - will fail under different top-level drivers - String m = "when running under eclipse or Ant, expecting (... in trace: "; - assertTrue( m + result, false); + String m = "when running under eclipse or Ant, expecting (... in trace: "; + assertTrue( m + result, false); } stackBuffer = new StringBuffer("java.lang.RuntimeException: unimplemented" -- cgit v1.2.3