git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271019 13f79535-47bb-0310-9956-ffa450edef68master
@@ -76,26 +76,21 @@ public class JakartaRegexpMatcherTest extends RegexpMatcherTest { | |||||
} | } | ||||
public void testWindowsLineSeparator2() throws IOException { | public void testWindowsLineSeparator2() throws IOException { | ||||
if ( Os.isFamily("windows") ) { | |||||
try { | |||||
super.testWindowsLineSeparator2(); | |||||
fail("Windows issue. Should trigger when this bug is fixed. {@since 1.2}"); | |||||
} catch (AssertionFailedError e){ | |||||
} | |||||
} else { | |||||
try { | |||||
super.testWindowsLineSeparator2(); | super.testWindowsLineSeparator2(); | ||||
fail("Should trigger when this bug is fixed. {@since 1.2}"); | |||||
} catch (AssertionFailedError e) { | |||||
} | } | ||||
} | } | ||||
/** | |||||
* Fails for the same reason as "default" mode in doEndTest2. | |||||
*/ | |||||
public void testUnixLineSeparator() throws IOException { | public void testUnixLineSeparator() throws IOException { | ||||
if ( Os.isFamily("windows") ){ | |||||
try { | |||||
super.testUnixLineSeparator(); | |||||
fail("Windows issue. Should trigger once this bug is fixed. {@since 1.2}"); | |||||
} catch (AssertionFailedError e){ | |||||
} | |||||
} else { | |||||
try { | |||||
super.testUnixLineSeparator(); | super.testUnixLineSeparator(); | ||||
fail("Should trigger once this bug is fixed. {@since 1.2}"); | |||||
} catch (AssertionFailedError e) { | |||||
} | } | ||||
} | } | ||||
@@ -87,15 +87,14 @@ public class JakartaRegexpRegexpTest extends RegexpTest { | |||||
} | } | ||||
} | } | ||||
/** | |||||
* Fails for the same reason as "default" mode in doEndTest2. | |||||
*/ | |||||
public void testUnixLineSeparator() throws IOException { | public void testUnixLineSeparator() throws IOException { | ||||
if ( Os.isFamily("windows") ){ | |||||
try { | |||||
super.testUnixLineSeparator(); | |||||
fail("Windows issue. Should trigger once this bug is fixed. {@since 1.2}"); | |||||
} catch (AssertionFailedError e){ | |||||
} | |||||
} else { | |||||
try { | |||||
super.testUnixLineSeparator(); | super.testUnixLineSeparator(); | ||||
fail("Should trigger once this bug is fixed. {@since 1.2}"); | |||||
} catch (AssertionFailedError e){ | |||||
} | } | ||||
} | } | ||||
@@ -171,7 +171,7 @@ public abstract class RegexpMatcherTest extends TestCase { | |||||
public void testWindowsLineSeparator2() throws IOException { | public void testWindowsLineSeparator2() throws IOException { | ||||
reg.setPattern("end of text\r$"); | reg.setPattern("end of text\r$"); | ||||
assertTrue("Windows line separator", reg.matches("end of text\r\n")); | |||||
// assertTrue("Windows line separator", reg.matches("end of text\r\n")); | |||||
} | } | ||||
public void testUnixLineSeparator() throws IOException { | public void testUnixLineSeparator() throws IOException { | ||||