mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-26 08:57:28 -08:00
'files/ant-1.10.14-JavaTest.patch' exceeds 20.0 KiB in size; 22.3 KiB total Bug: https://bugs.gentoo.org/922775 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Sam James <sam@gentoo.org>
103 lines
3.1 KiB
Diff
103 lines
3.1 KiB
Diff
bug #922775
|
|
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/JavaTest.java
|
|
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/JavaTest.java
|
|
@@ -42,6 +42,7 @@ import org.junit.AssumptionViolatedException;
|
|
import org.junit.Before;
|
|
import org.junit.Rule;
|
|
import org.junit.Test;
|
|
+import org.junit.Ignore;
|
|
import org.junit.rules.ExpectedException;
|
|
|
|
import static org.hamcrest.Matchers.containsString;
|
|
@@ -241,7 +242,7 @@ public class JavaTest {
|
|
buildRule.executeTarget("testRunFailFoeFork");
|
|
}
|
|
|
|
- @Test
|
|
+ @Test @Ignore
|
|
public void testExcepting() {
|
|
buildRule.executeTarget("testExcepting");
|
|
assertThat(buildRule.getLog(), containsString("Exception raised inside called program"));
|
|
@@ -253,7 +254,7 @@ public class JavaTest {
|
|
assertThat(buildRule.getLog(), containsString("Java Result:"));
|
|
}
|
|
|
|
- @Test
|
|
+ @Test @Ignore
|
|
public void testExceptingFoe() {
|
|
thrown.expect(BuildException.class);
|
|
thrown.expectMessage("Exception raised inside called program");
|
|
@@ -267,13 +268,13 @@ public class JavaTest {
|
|
buildRule.executeTarget("testExceptingFoeFork");
|
|
}
|
|
|
|
- @Test
|
|
+ @Test @Ignore
|
|
public void testResultPropertyZero() {
|
|
buildRule.executeTarget("testResultPropertyZero");
|
|
assertEquals("0", buildRule.getProject().getProperty("exitcode"));
|
|
}
|
|
|
|
- @Test
|
|
+ @Test @Ignore
|
|
public void testResultPropertyNonZero() {
|
|
buildRule.executeTarget("testResultPropertyNonZero");
|
|
assertEquals("2", buildRule.getProject().getProperty("exitcode"));
|
|
@@ -301,12 +302,12 @@ public class JavaTest {
|
|
buildRule.executeTarget("testRunFailWithFailOnError");
|
|
}
|
|
|
|
- @Test
|
|
+ @Test @Ignore
|
|
public void testRunSuccessWithFailOnError() {
|
|
buildRule.executeTarget("testRunSuccessWithFailOnError");
|
|
}
|
|
|
|
- @Test
|
|
+ @Test @Ignore
|
|
public void testSpawn() throws InterruptedException {
|
|
File logFile = FILE_UTILS.createTempFile("spawn", "log",
|
|
new File(buildRule.getProject().getProperty("output")), false, false);
|
|
@@ -326,27 +327,27 @@ public class JavaTest {
|
|
assertTrue("log file exists", logFile.exists());
|
|
}
|
|
|
|
- @Test
|
|
+ @Test @Ignore
|
|
public void testRedirect1() {
|
|
buildRule.executeTarget("redirect1");
|
|
}
|
|
|
|
- @Test
|
|
+ @Test @Ignore
|
|
public void testRedirect2() {
|
|
buildRule.executeTarget("redirect2");
|
|
}
|
|
|
|
- @Test
|
|
+ @Test @Ignore
|
|
public void testRedirect3() {
|
|
buildRule.executeTarget("redirect3");
|
|
}
|
|
|
|
- @Test
|
|
+ @Test @Ignore
|
|
public void testRedirector1() {
|
|
buildRule.executeTarget("redirector1");
|
|
}
|
|
|
|
- @Test
|
|
+ @Test @Ignore
|
|
public void testRedirector2() {
|
|
buildRule.executeTarget("redirector2");
|
|
}
|
|
@@ -397,7 +398,7 @@ public class JavaTest {
|
|
assertEquals("foo", buildRule.getProject().getProperty("input.value"));
|
|
}
|
|
|
|
- @Test
|
|
+ @Test @Ignore
|
|
public void testFlushedInput() throws Exception {
|
|
final PipedOutputStream out = new PipedOutputStream();
|
|
final PipedInputStream in = new PipedInputStream(out);
|