United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6561063 TEST_BUG: closed/runtime/6244515/Truncate.java does not work on Windows
JDK-6561063 : TEST_BUG: closed/runtime/6244515/Truncate.java does not work on Windows

Details
Type:
Bug
Submit Date:
2007-05-23
Status:
Closed
Updated Date:
2012-10-08
Project Name:
JDK
Resolved Date:
2007-06-20
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs10 (b14)

Related Reports
Backport:
Backport:

Sub Tasks

Description
Failure example:
http://gtee.sfbay/gtee/results/MUSTANG/NIGHTLY/VM-MAIN/VM/2007-05-20.pit/Main_Baseline/vm/64BITWIN-AMD64/server/mixed/vm-64BITWIN-AMD64_server_mixed_HS_REGRESSION2007-05-21-12-34-29/closed/runtime/6244515/Truncate.jtr

The test hardcodes /tmp/z which does not exist on Windows.

                                    

Comments
EVALUATION

The test fails because the way the test case creates the temporary file. However, even though that is fixed, the test will still fail on Windows since Windows does not allow the file to be truncated when it still has user-mapped region open.

Having said that, I believe the correct way to fix this bug is to ignore the test specifically on Windows platform.
                                     
2007-06-04



Hardware and Software, Engineered to Work Together