summaryrefslogtreecommitdiff
path: root/ant-openjdk-jpeg-cmyk.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 11:33:40 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 11:33:40 +0000
commitfef17c9ab9231831849d1f3884462a73267fec51 (patch)
treef7ba79a04a8a02dbddf3316b8858cfa9a42d6e6c /ant-openjdk-jpeg-cmyk.patch
parent9304db5774b246815886ab749ca1c21da98f20a8 (diff)
automatic import of antopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'ant-openjdk-jpeg-cmyk.patch')
-rw-r--r--ant-openjdk-jpeg-cmyk.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/ant-openjdk-jpeg-cmyk.patch b/ant-openjdk-jpeg-cmyk.patch
new file mode 100644
index 0000000..2c0bdfc
--- /dev/null
+++ b/ant-openjdk-jpeg-cmyk.patch
@@ -0,0 +1,29 @@
+diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/image/ImageIOTest.java b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/image/ImageIOTest.java
+index 537a4e8ffaf3af22..bfc8a011ad4b21f8 100644
+--- a/src/tests/junit/org/apache/tools/ant/taskdefs/optional/image/ImageIOTest.java
++++ b/src/tests/junit/org/apache/tools/ant/taskdefs/optional/image/ImageIOTest.java
+@@ -28,6 +28,7 @@ import org.junit.rules.ExpectedException;
+
+ import java.io.File;
+
++import static org.hamcrest.Matchers.anyOf;
+ import static org.hamcrest.Matchers.containsString;
+ import static org.junit.Assert.assertEquals;
+ import static org.junit.Assert.assertThat;
+@@ -132,13 +133,13 @@ public class ImageIOTest {
+
+ @Test
+ public void testFailOnError() {
+- final String message = "Unsupported Image Type";
+ thrown.expect(BuildException.class);
+- thrown.expectMessage(message);
+ try {
+ buildRule.executeTarget("testFailOnError");
+ } finally {
+- assertThat(buildRule.getLog(), containsString(message));
++ assertThat(buildRule.getLog(),
++ anyOf(containsString("Unsupported Image Type"),
++ containsString("Unknown image type")));
+ }
+ }
+