-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2
-
b14
-
x86
-
windows, windows_nt, windows_2000
-
Verified
Name: asR10013 Date: 12/18/2002
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.4.2
Testbase : RegTest-test
Platform[s] : Windows
Falling test[s]:
java/nio/channels/FileChannel/Transfer.java
RegTest-test java/nio/channels/FileChannel/Transfer.java test fails on Windows using JDK1.4.2
for test base builds b08-b10:
Test threw exception: java.io.IOException: There is not enough space on the disk
The failure is caused by the changes made in the Regression test base
for b08.
Transfer.xferTest05() was not executed on Windows using b07 and preceding builds:
// Windows and Linux can't handle the really large file sizes for a
// truncate or a positional write required by the test for 4563125
String osName = System.getProperty("os.name");
if (!osName.startsWith("SunOS"))
return;
Since b08 the code was changed as follows:
// Linux can't handle the really large file sizes for a
// truncate or a positional write
String osName = System.getProperty("os.name");
if (osName.startsWith("Linux"))
return;
Test source location:
=====================
/java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/java/nio/channels/FileChannel/Transfer.java
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b10/regtest/win32/winnt4.0_smp_-server_smp_linux-21/workDir/test/java/nio/channels/FileChannel/Transfer.jtr
How to reproduce:
=================
Run the following script (you may need to change its variables)
--- script start ---
#!/bin/sh
RESULT_DIR=`pwd`
WORK_DIR=$RESULT_DIR/workDir/test
REPORT_DIR=$RESULT_DIR/reportDir
JT_HOME="h:/java/jct"
JAVA_HOME="h:/java/jdk1.4.2/win32"
TEST_BASE_PATH="h:/java/regtest/test"
TESTWITH=$JAVA_HOME
TESTJAVA=$JAVA_HOME
JTOPTS="-server"
TESTVMOPTS="-server"
CLASSPATH="$JT_HOME/classes;$JT_HOME/lib/javatest.jar;$JT_HOME/lib/jtreg.jar"
export JAVA_HOME
export JT_HOME
export TESTWITH
export CLASSPATH
mkdir -p $WORK_DIR/scratch 2>&1
mkdir -p $WORK_DIR/jtData 2>&1
mkdir -p $REPORT_DIR 2>&1
#rm $WORK_DIR/jtData/ResultCache.jtw 2>&1
cd $WORK_DIR/scratch
$JAVA_HOME/bin/java -cp $CLASSPATH $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,windir=$windir,PATH=${SHELL%/*},TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-21" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/java/nio/channels/FileChannel/Transfer.java"
--- script end ---
Script output:
==============
Test output (jtr part):
=======================
----------System.out:(0/0)----------
----------System.err:(19/1082)----------
java.io.IOException: There is not enough space on the disk
at sun.nio.ch.FileDispatcher.pwrite0(Native Method)
at sun.nio.ch.FileDispatcher.pwrite(FileDispatcher.java:51)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:100)
at sun.nio.ch.IOUtil.write(IOUtil.java:75)
at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:614)
at Transfer.xferTest05(Transfer.java:243)
at Transfer.main(Transfer.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
at java.lang.Thread.run(Thread.java:536)
JavaTest Message: Test threw exception: java.io.IOException: There is not enough space on the disk
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.io.IOException: There is not enough space on the disk
result: Failed. Execution failed: `main' threw exception: java.io.IOException: There is not enough space on the disk
test result: Failed. Execution failed: `main' threw exception: java.io.IOException: There is not enough space on the disk
Specific machine info:
======================
Hostname: linux-21
OS: Windows NT 4.0
======================================================================