commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno P. Kinoshita (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-943) Test DurationFormatUtilsTest.testEdgeDuration fails in JDK 1.6, 1.7 and 1.8, BRST time zone
Date Sun, 05 Jan 2014 23:27:50 GMT

    [ https://issues.apache.org/jira/browse/LANG-943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13862688#comment-13862688
] 

Bruno P. Kinoshita commented on LANG-943:
-----------------------------------------

Build (mvn clean test -e -X) fails for me in Ubuntu Linux 3.11.0-14-generic x86_64, Apache
Maven 3.1.1 for:

########################
#     JDK 1.6.0_27     #
########################

Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 12:22:22-0300)
Maven home: /opt/java/apache-maven-3.1.1
Java version: 1.6.0_27, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.11.0-14-generic", arch: "amd64", family: "unix"
[...]
[...]
[...]
[...]
Results :

Failed tests: 
  DurationFormatUtilsTest.testEdgeDurations:467->assertEqualDuration:562->assertEqualDuration:575
expected:<7[7]> but was:<7[6]>

Tests run: 2392, Failures: 1, Errors: 0, Skipped: 4

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 52.186s
[INFO] Finished at: Sun Jan 05 21:05:29 BRST 2014
[INFO] Final Memory: 23M/262M
[INFO] ------------------------------------------------------------------------

########################
#     JDK 1.7.0_25     #
########################

Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 12:22:22-0300)
Maven home: /opt/java/apache-maven-3.1.1
Java version: 1.7.0_25, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.11.0-14-generic", arch: "amd64", family: "unix"
[...]
[...]
[...]
[...]
Results :

Failed tests: 
  DurationFormatUtilsTest.testEdgeDurations:467->assertEqualDuration:562->assertEqualDuration:575
expected:<7[7]> but was:<7[6]>

Tests run: 2392, Failures: 1, Errors: 0, Skipped: 5

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44.062s
[INFO] Finished at: Sun Jan 05 21:10:30 BRST 2014
[INFO] Final Memory: 24M/337M
[INFO] -----------------------------------------------------------------------

########################
#     JDK 1.8.0b121     #
########################

Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 12:22:22-0300)
Maven home: /opt/java/apache-maven-3.1.1
Java version: 1.8.0-ea, vendor: Oracle Corporation
Java home: /opt/java/jdk1.8.0/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.11.0-14-generic", arch: "amd64", family: "unix"
[...]
[...]
[...]
[...]
Results :

Failed tests: 
  DurationFormatUtilsTest.testEdgeDurations:467->assertEqualDuration:562->assertEqualDuration:575
expected:<7[7]> but was:<7[6]>

Tests run: 2392, Failures: 1, Errors: 0, Skipped: 5

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 57.890s
[INFO] Finished at: Sun Jan 05 21:12:57 BRST 2014
[INFO] Final Memory: 24M/168M
[INFO] ----------------------------------------------------------------------


> Test DurationFormatUtilsTest.testEdgeDuration fails in JDK 1.6, 1.7 and 1.8, BRST time
zone
> -------------------------------------------------------------------------------------------
>
>                 Key: LANG-943
>                 URL: https://issues.apache.org/jira/browse/LANG-943
>             Project: Commons Lang
>          Issue Type: Bug
>         Environment: Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17
12:22:22-0300)
> Maven home: /opt/java/apache-maven-3.1.1
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.11.0-14-generic", arch: "amd64", family: "unix"
> JDK 1.6.0_27, JDK 1.7.0_25, JDK 1.7.0_25
>            Reporter: Bruno P. Kinoshita
>              Labels: test-fail, timezone
>
> While helping testing LANG-942 with JDK1.8 I always got three tests failing, while others
had 2. After @britter fixed the issues related to JDK1.8, I continue getting errors with JDK1.8.
> I decided to vote for [lang] 3.2.1 and test the tag with JDK 1.8 and a few others. However,
I'm getting errors with any JDK, 1.6, 1.7 and 1.8 (build 121). Always the same error:
> Failed tests: 
>   DurationFormatUtilsTest.testEdgeDurations:467->assertEqualDuration:562->assertEqualDuration:575
expected:<7[7]> but was:<7[6]>
> I get the same error with JDK 1.6 and the tag 3.1
> Since the test is somewhat related to Time Zones (there are some Calendar's, TimeZone.getDefault(),
etc), here's my locale and time zone:
> kinow@chuva:~/java/apache/commons-lang-31$ locale
> LANG=en_US.UTF-8
> LANGUAGE=en_US
> LC_CTYPE="en_US.UTF-8"
> LC_NUMERIC="en_US.UTF-8"
> LC_TIME="en_US.UTF-8"
> LC_COLLATE="en_US.UTF-8"
> LC_MONETARY="en_US.UTF-8"
> LC_MESSAGES="en_US.UTF-8"
> LC_PAPER="en_US.UTF-8"
> LC_NAME="en_US.UTF-8"
> LC_ADDRESS="en_US.UTF-8"
> LC_TELEPHONE="en_US.UTF-8"
> LC_MEASUREMENT="en_US.UTF-8"
> LC_IDENTIFICATION="en_US.UTF-8"
> LC_ALL=
> kinow@chuva:~/java/apache/commons-lang-31$ date
> Sun Jan  5 21:23:05 BRST 2014



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message