diff options
Diffstat (limited to 'util/testsrc/org')
-rw-r--r-- | util/testsrc/org/aspectj/util/LangUtilTest.java | 7 |
1 files changed, 4 insertions, 3 deletions
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" |