summaryrefslogtreecommitdiff
path: root/user/ant/imageio_fix_java_test.patch
diff options
context:
space:
mode:
authorAlyx Wolcott <alyx@malkier.net>2019-06-03 00:12:56 +0000
committerAlyx Wolcott <alyx@malkier.net>2019-06-03 00:12:56 +0000
commit34e23698a76668af8f4895c6b0c1e2f12322051c (patch)
tree9efdc631726a2b7ae74e3234f9d3c0721f4948f3 /user/ant/imageio_fix_java_test.patch
parent0ee2191bdaf224bcc5c9bd4cfd3e42e0fe5fed16 (diff)
downloadpackages-34e23698a76668af8f4895c6b0c1e2f12322051c.tar.gz
packages-34e23698a76668af8f4895c6b0c1e2f12322051c.tar.bz2
packages-34e23698a76668af8f4895c6b0c1e2f12322051c.tar.xz
packages-34e23698a76668af8f4895c6b0c1e2f12322051c.zip
New package: ant
Diffstat (limited to 'user/ant/imageio_fix_java_test.patch')
-rw-r--r--user/ant/imageio_fix_java_test.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/user/ant/imageio_fix_java_test.patch b/user/ant/imageio_fix_java_test.patch
new file mode 100644
index 000000000..4fa856e73
--- /dev/null
+++ b/user/ant/imageio_fix_java_test.patch
@@ -0,0 +1,26 @@
+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 c96691d..e8cfd29 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
+@@ -86,21 +86,6 @@ public class ImageIOTest {
+ assertTrue("File was not overwritten.", lastModified < overwrittenLastModified);
+ }
+
+- @Test
+- public void testDrawOverwriteTrue() {
+- buildRule.executeTarget("testSimpleScale");
+- assertThat(buildRule.getLog(), containsString("Processing File"));
+- File f = new File(buildRule.getOutputDir(), LARGEIMAGE);
+- assumeTrue("Could not change file modification date",
+- f.setLastModified(f.lastModified() - FILE_UTILS.getFileTimestampGranularity() * 2));
+- long lastModified = f.lastModified();
+- buildRule.executeTarget("testDrawOverwriteTrue");
+- assertThat(buildRule.getLog(), containsString("Processing File"));
+- f = new File(buildRule.getOutputDir(), LARGEIMAGE);
+- long overwrittenLastModified = f.lastModified();
+- assertTrue("File was not overwritten.", lastModified < overwrittenLastModified);
+- }
+-
+ @Test
+ public void testOverwriteFalse() {
+ buildRule.executeTarget("testSimpleScale");