The test attempts to create a 7GB file in the temporary file directory. It would be better if this test were changed to create the file in the working directory and in addition, check the free disk space so that it passes when there is insufficient disk space available. TEST: java/io/FileInputStream/LargeFileAvailable.java JDK under test: (/tmp/jprt/P4/T/003103.ss145989/testproduct/solaris_sparc_5.10-product) java version "1.7.0-internal" Java(TM) SE Runtime Environment (build 1.7.0-internal-201103220031.ss145989.tl-pit-2d-awt-swin-b00) Java HotSpot(TM) Client VM (build 21.0-b04, mixed mode) ACTION: build -- Passed. Build successful REASON: Named class compiled on demand TIME: 0.089 seconds messages: command: build LargeFileAvailable reason: Named class compiled on demand elapsed time (seconds): 0.089 ACTION: compile -- Passed. Compilation successful REASON: .class file out of date or does not exist TIME: 0.089 seconds messages: command: compile /tmp/jprt/P4/T/003103.ss145989/source/jdk/test/java/io/FileInputStream/LargeFileAvailable.java reason: .class file out of date or does not exist elapsed time (seconds): 0.089 ACTION: main -- Failed. Execution failed: `main' threw exception: java.io.IOException: No space left on device REASON: Assumed action based on file name: run main LargeFileAvailable TIME: 0.026 seconds messages: command: main LargeFileAvailable reason: Assumed action based on file name: run main LargeFileAvailable elapsed time (seconds): 0.026 STDOUT: STDERR: java.io.IOException: No space left on device at sun.nio.ch.FileDispatcherImpl.pwrite0(Native Method) at sun.nio.ch.FileDispatcherImpl.pwrite(FileDispatcherImpl.java:65) at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:86) at sun.nio.ch.IOUtil.write(IOUtil.java:61) at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:700) at LargeFileAvailable.createLargeFile(LargeFileAvailable.java:95) at LargeFileAvailable.main(LargeFileAvailable.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:613) at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680) at java.lang.Thread.run(Thread.java:722) JavaTest Message: Test threw exception: java.io.IOException JavaTest Message: shutting down test TEST RESULT: Failed. Execution failed: `main' threw exception: java.io.IOException: No space left on device --------------------------------------------------
|