JDK-6180533 : FCtransferTosize and FCtransferTo testcases are failing on amd-sles9.0
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 1.4.2_07
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux_suse_sles_8
  • CPU: x86
  • Submitted: 2004-10-18
  • Updated: 2011-02-16
  • Resolved: 2005-04-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2_10Resolved
Related Reports
Duplicate :  
Description
FCtransferTosize and FCtransferTo testcases are failing on amd-sles9.0 with 1.4.2_07. It is failing with 1.4.2_06 also so it is not a regression. But this can be a cross platform regression as it is passing on solaris sparc.

How To Reproduce :
================

Copy  FCtransferTosize.java from the following location,
 /net/jtest-s13.india/export/testSuites/142/Libs/src/java_nio/Channel/FileChannel/FCtransferTosize

set the CLASSPATH to 

/net/jtest-s13.india/export/testSuites/142/Libs/classes

Compile and execute the FCtransferTosize.java

OUTPUT:
======

AMD-SLES9.0:
===========
# /export/updates/jdks/j2sdk1.4.2_07/bin/javac FCtransferTosize.java
# /export/updates/jdks/j2sdk1.4.2_07/bin/java FCtransferTosize
TestFailException: FCtransferTosizeTest1 FAIL: Expected Exception - FCtransferTosizeTest1java.io.IOException: Invalid argument
        at TestHelper.testFail(TestHelper.java:70)
        at FCtransferTosize.FCtransferTosizeTest1(FCtransferTosize.java:166)
        at FCtransferTosize.go(FCtransferTosize.java:78)
        at FCtransferTosize.main(FCtransferTosize.java:44)
Test Case FCtransferTosizeTest1 failed!
Pass count: 0
Fail count: 1
java.nio.channels.transferTo()  Failed
# uname -a
Linux urt-amd-1 2.6.5-7.97-default #1 Fri Jul 2 14:21:59 UTC 2004 x86_64 x86_64 x86_64 GNU/Linux


SOLARIS9 SPARC:
==============

where as this testcase is passed on solaris9 sparc, Here is the output
jtg-s124$ export CLASSPATH=/net/jtest-s13/export/testSuites/142/Libs/classes:.:$CLASSPATH
jtg-s124$ /usr/j2se/bin/java FCtransferTosize
SIZE1 1850428
SIZE2 1850428
FCtransferTosizeTest1 PASS - FCtransferTosizeTest1
Pass count: 1
Fail count: 0
java.nio.channels.transferTo()  Passed
###@###.### 10/18/04 14:58 GMT

Comments
EVALUATION This is not a regression but a duplicate bug of 5056395, which got fixed in tiger. The sendfile(2) syscall has been modified in such a way that Linux kernel 2.6.x and above can be used to transfer data from a file descriptor to a socket descriptor. ###@###.### 2005-04-26 07:31:04 GMT
26-04-2005