Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 69113 - commons-lang-2.0-r1 fails time test
Summary: commons-lang-2.0-r1 fails time test
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-27 03:18 UTC by Paul Taylor
Modified: 2004-11-06 12:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Taylor 2004-10-27 03:18:26 UTC
While carrying out a periodic rebuild of my system, I discovered that commons-lang-2.0-r1 now fails during the time tests.  Previously it has build successfully; this may be due to portage now including a testing phase as part of the build process.

The test reports that the time returned was one hour out from the expected time; this may be due to Daylight Savings Time issues between local time (Australian Eastern Standard Time = GMT+10), and the reference time. (DST starts here this weekend, so the test may return different results next week...)

Reproducible: Always
Steps to Reproduce:
1. emerge commons-lang


Actual Results:  
[snip]

test.time:
     [echo] Running time package tests ...
     [java] .....F.....................
     [java] Time: 4.58
     [java] There was 1 failure:
     [java] 1)
testWeekIterator(org.apache.commons.lang.time.DateUtilsTest)junit.framework.AssertionFailedError:
 expected Sun Oct 24 23:00:00 EST 2004 but gotSun Oct 24 00:00:00 EST 2004
     [java]     at
org.apache.commons.lang.time.DateUtilsTest.assertEquals(DateUtilsTest.java:725)
     [java]     at
org.apache.commons.lang.time.DateUtilsTest.assertWeekIterator(DateUtilsTest.java:703)
     [java]     at
org.apache.commons.lang.time.DateUtilsTest.assertWeekIterator(DateUtilsTest.java:676)
     [java]     at
org.apache.commons.lang.time.DateUtilsTest.testWeekIterator(DateUtilsTest.java:617)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

     [java] FAILURES!!!
     [java] Tests run: 26,  Failures: 1,  Errors: 0


BUILD FAILED
/var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/build.xml:176:
Java returned: 1

Total time: 18 seconds

!!! ERROR: dev-java/commons-lang-2.0-r1 failed.
!!! Function src_compile, Line 33, Exitcode 1
!!! compilation failed
!!! If you need support, post the topmost build error, NOT this status message.




Portage 2.0.51-r2 (default-linux/amd64/gcc34-2004.2, gcc-3.4.2,
glibc-2.3.4.20041006-r0, 2.6.9-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.9-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.4
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks"
GENTOO_MIRRORS="http://gentoo.osuosl.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X aalib acpi adns alsa amd64 apache2 apm arts avi berkdb bitmap-fonts cdr
cjk crypt cups dvd dvdr encode esd f77 fam fbcon flac foomaticdb freetype gdbm
gif gimpprint gpm gps gtk gtk2 imagemagick imlib jack java jpeg junit kde libg++
libwww lzw lzw-tiff mad mikmod motif mpeg multilib ncurses nptl oggvorbis
openglpam pda pdflib perl png ppds python qt quicktime readline sdk sdl slang
snmp spamassassin speex spell ssl tcltk tcpd tiff truetype usb xml2 xprint xv zlib"
Comment 1 Radoslaw Szkodzinski 2004-10-27 08:30:26 UTC
Confirming. 1h time difference as well,
I'm in the CEST zone (GMT+1) and have BIOS clock in UTC.

Portage 2.0.51-r2 (default-linux/x86/2004.2/gcc34/2.6, gcc-3.4.2, glibc-2.3.4.20041006-r0, 2.6.9-cko2 i686)
=================================================================
System uname: 2.6.9-cko2 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.6.4
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -maccumulate-outgoing-args -fweb -frename-registers -fprefetch-loop-arrays -mfpmath=387,sse"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -maccumulate-outgoing-args -fweb -frename-registers -fprefetch-loop-arrays -mfpmath=387,sse"
DISTDIR="/var/ports/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl"
MAKEOPTS="-j2"
PKGDIR="/var/ports/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/ports"
PORTDIR_OVERLAY="/var/myports /var/gensync/bmg-main"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex X X509 acl alsa apache2 apm arts artswrappersuid audiofile avi berkdb bitmap-fonts boundschecking bzlib caps cdparanoia cdr chroot crypt ctype cups dba divx4linux dvd encode esd f77 faac faad fam fbcon flac flatfile foomaticdb ftp gd gdbm gif glut gnome gpm gsm gstreamer gtk gtk2 gtkhtml guile hal iconv idea imagemagick imlib inifile ithreads jabber jack jack-tmpfs java javascript jpeg junit kadu-voice ladcca libg++ libwww lzw-tiff mad maildir matroska memlimit mhash mikmod mime mmap mmx mmx2 mng mono motif mozilla mpeg ncurses nls nptl nvidia oav oggvorbis opengl oss pam pcre pdflib perl php pic png portaudio ppds pwdb python qt quicktime readline rtc samba sdl session shared sharedmem slang sndfile sockets soundtouch speex sqlite sse ssl svg sysvipc tcltk tcpd theora threads tidy tiff tlen tokenizer truetype wmf x86 xgetdefault xine xml xml2 xmms xprint xrandr xv xvid xvmc zlib"
Comment 2 Radoslaw Szkodzinski 2004-10-27 08:52:22 UTC
Running the tests is being done when junit USE flag is set.
Comment 3 Masse Nicolas 2004-10-28 05:28:33 UTC
I have the same problem.  

"test.time:
     [echo] Running time package tests ...
     [java] .....F.....................
     [java] Time: 4,682
     [java] There was 1 failure:
     [java] 1) testWeekIterator(org.apache.commons.lang.time.DateUtilsTest)junit.framework.AssertionFailedError:  expected Sun Oct 31 01:00:00 CEST 2004 but got Sun Oct 31 00:00:00 CEST 2004
     [java]     at org.apache.commons.lang.time.DateUtilsTest.assertEquals(DateUtilsTest.java:725)
     [java]     at org.apache.commons.lang.time.DateUtilsTest.assertWeekIterator(DateUtilsTest.java:703)
     [java]     at org.apache.commons.lang.time.DateUtilsTest.assertWeekIterator(DateUtilsTest.java:676)
     [java]     at org.apache.commons.lang.time.DateUtilsTest.testWeekIterator(DateUtilsTest.java:617)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

     [java] FAILURES!!!
     [java] Tests run: 26,  Failures: 1,  Errors: 0


BUILD FAILED"


I tried to change my /etc/localtime, but it doesn't seems to do anything : (
Comment 4 Thomas Matthijs (RETIRED) gentoo-dev 2004-11-06 06:57:13 UTC
it seems to use the hardware clock
i sync my hw and system clock with hwclock and it passed the test
Comment 5 Paul Taylor 2004-11-06 12:27:20 UTC
It's now DST here, and the compilation works...  It may be just a coincidence, though.

I keep my system clock NTP synchronised, and the /etc/init.d/clock service should synchronise the system and hardware clocks every startup and shutdown, so I don't think that was the problem for me.  Odd.