JDK-6561063 : TEST_BUG: closed/runtime/6244515/Truncate.java does not work on Windows
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-05-23
  • Updated: 2012-10-08
  • Resolved: 2007-06-20
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.
JDK 6 JDK 7 Other
6u4Fixed 7Fixed hs10Fixed
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.
04-06-2007