| Summary: | version bump: dev-java/commons-net-1.4.1 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Josh Nichols (RETIRED) <nichoj> |
| Component: | New packages | Assignee: | Java team <java> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | Keywords: | InVCS |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | http://jakarta.apache.org/commons/net/ | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Josh Nichols (RETIRED)
2005-12-20 19:02:08 UTC
A simple bump doesn't seem to entire cut it. With USE=junit, I found the tests fail:
[junit] Running org.apache.commons.net.time.TimeTCPClientTest
[junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 1.093 sec
[junit] Testsuite: org.apache.commons.net.time.TimeTCPClientTest
[junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 1.093 sec
[junit] Testcase: testInitial took 0.009 sec
[junit] Testcase: testCompareTimes took 1.074 sec
[junit] Caused an ERROR
[junit] null
[junit] java.lang.NullPointerException
[junit] at org.apache.commons.net.SocketClient.disconnect(SocketClient.java:266)
[junit] at org.apache.commons.net.time.TimeTCPClientTest.testCompareTimes(TimeTCPClientTest.java:133)
I put an ebuild up on experimental at http://gentooexperimental.org/svn/java/gentoo-java-experimental/dev-java/commons-net
I managed to fix the null pointers, and filed a bug upstream: http://issues.apache.org/bugzilla/show_bug.cgi?id=37985 The next issue is that another test in the same TestCase attempts to lookup the local machine's hostname. If the host doens't have a fully qualified domain name and doesn't have an entry in /etc/hosts for the hostname, then the test will fail. So I looked into it a little more, and apparently you don't get the null pointers in the first place if you have your hostname in your /etc/hosts file. Fixed in CVS. I've disabled unit tests for now, until we it can get fixed upstream... |