Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 210214 - dev-java/poi-3.0.2-r1 fails tests
Summary: dev-java/poi-3.0.2-r1 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-15 03:46 UTC by Petteri Räty (RETIRED)
Modified: 2008-02-20 19:25 UTC (History)
1 user (show)

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


Attachments
patch for poi tests (poi-3.0.2-TestisADateFormat.patch,918 bytes, patch)
2008-02-20 18:38 UTC, Alexey Fansky
Details | Diff
updated ebuild (poi-3.0.2-r1.ebuild,2.29 KB, text/plain)
2008-02-20 18:38 UTC, Alexey Fansky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2008-02-15 03:46:23 UTC
[junit] Running org.apache.poi.hssf.usermodel.TestHSSFDateUtil
    [junit] Tests run: 6, Failures: 1, Errors: 0, Time elapsed: 0.049 sec

BUILD FAILED
/var/tmp/portage/dev-java/poi-3.0.2-r1/work/poi-3.0.2-FINAL/build.xml:406: Test org.apache.poi.hssf.usermodel.TestHSSFDateUtil failed

Total time: 18 seconds

!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.04"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
and of course, the output of emerge --info
Comment 1 Miroslav Šulc gentoo-dev 2008-02-15 18:13:17 UTC
The tests probably need to be patched according to upstream changes related to the patch that we apply and upstream accepted. I'll try to find some time to fix it, though not sure whether I'll get to it during this weekend.
Comment 2 Alexey Fansky 2008-02-19 23:33:34 UTC
I run tests from ebuild and org.apache.poi.hssf.usermodel.TestHSSFDateUtil failed...

But then I unpacked tarball and run "ant test":
    [junit] Running org.apache.poi.hssf.usermodel.TestHSSFDateUtil
    [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 0,971 sec

It seems that this is an ebuild problem.
Comment 3 Miroslav Šulc gentoo-dev 2008-02-20 10:12:12 UTC
As I wrote above, the ebuild contains extra patch which is not part of the upstream release. The patch was accepted after the release but it is important as it fixes detection of date/time cell formats. Unfortunately also fix (patch) for org.apache.poi.hssf.usermodel.TestHSSFDateUtil is needed.
Comment 4 Alexey Fansky 2008-02-20 18:38:13 UTC
Created attachment 144145 [details, diff]
patch for poi tests

yyyy:mm:dd is a valid date after applying fordfrog's patch
Comment 5 Alexey Fansky 2008-02-20 18:38:51 UTC
Created attachment 144146 [details]
updated ebuild
Comment 6 Miroslav Šulc gentoo-dev 2008-02-20 19:25:20 UTC
Alex, thank you for finding out where the problem is. I decided to use the patch from upstream that was created when my patch was committed to stay with the upstream. Here is upstream's patch: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestHSSFDateUtil.java?r1=601004&r2=619382

The fix has been committed to CVS so after few hours the tests should work again.