[libcommons-net-java] 02/03: Disabled the testFeb29IfLeapYear test in FTPTimestampParserImplTest

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Fri Jan 15 15:20:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository libcommons-net-java.

commit 980a58d64997da6f526862c9486ff7e8bd6c186c
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Fri Jan 15 15:17:47 2016 +0100

    Disabled the testFeb29IfLeapYear test in FTPTimestampParserImplTest
---
 debian/changelog                             |  1 +
 debian/patches/01-ignore-failing-tests.patch | 14 ++++++++++++++
 debian/patches/series                        |  1 +
 3 files changed, 16 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index fa90610..460c5bf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ libcommons-net-java (3.4-2) UNRELEASED; urgency=medium
 
   * Team upload.
   * Restored the OSGi metadata (Closes: #809567)
+  * Disabled the testFeb29IfLeapYear test in FTPTimestampParserImplTest
 
  -- Emmanuel Bourg <ebourg at apache.org>  Fri, 15 Jan 2016 13:42:05 +0100
 
diff --git a/debian/patches/01-ignore-failing-tests.patch b/debian/patches/01-ignore-failing-tests.patch
new file mode 100644
index 0000000..54331fc
--- /dev/null
+++ b/debian/patches/01-ignore-failing-tests.patch
@@ -0,0 +1,14 @@
+Description: Disable a test failing in 2016
+Author: Emmanuel Bourg <ebourg at apache.org>
+Bug: https://issues.apache.org/jira/browse/NET-586
+--- a/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java
++++ b/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java
+@@ -382,7 +382,7 @@
+     }
+ 
+     // Test leap year if current year is a leap year
+-    public void testFeb29IfLeapYear() throws Exception{
++    public void _testFeb29IfLeapYear() throws Exception{
+         GregorianCalendar now = new GregorianCalendar();
+         final int thisYear = now.get(Calendar.YEAR);
+         if (now.isLeapYear(thisYear) && now.before(new GregorianCalendar(thisYear,Calendar.AUGUST,29))){
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6e075d2
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+01-ignore-failing-tests.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libcommons-net-java.git



More information about the pkg-java-commits mailing list