JDK-8249703 : test/jdk/java/io/File/GetXSpace.java fails on macos
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 15,16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2020-07-18
  • Updated: 2024-11-20
  • Resolved: 2020-08-10
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 16
16 b11Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
w/ the fix from JDK-8249700 to make the test doing its thing on mac, the test fails on '/dev' mount point:
SecurityManager = null
<...>
/dev:
  df   total=       216064 free =            0 usable =            0
  getX total=       216576 free =            0 usable =            0
<...>
SecurityManager = GetXSpace$Allow
/dev:
  df   total=       216064 free =            0 usable =            0
  getX total=       216576 free =            0 usable =            0
<...>
1 test(s) failed
STDERR:
FAILED: '/dev': 216064 != 216576
FAILED: '/dev': 216064 != 216576
Exception in thread "main" java.lang.RuntimeException: 156 tests: 2 failure(s), first
	at GetXSpace.main(GetXSpace.java:386)
Caused by: java.lang.RuntimeException: '/dev': 216064 != 216576
	at GetXSpace.setFirst(GetXSpace.java:102)
	at GetXSpace.fail(GetXSpace.java:87)
	at GetXSpace.compare(GetXSpace.java:227)
	at GetXSpace.testDF(GetXSpace.java:370)
	at GetXSpace.main(GetXSpace.java:382)
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/507bf8edeb0c User: bpb Date: 2020-08-10 16:58:25 +0000
10-08-2020