RFR: 8343342: java/io/File/GetXSpace.java fails on Windows with CD-ROM drive [v8]
Brian Burkhalter
bpb at openjdk.org
Wed Dec 18 23:05:38 UTC 2024
On Tue, 17 Dec 2024 23:40:58 GMT, Taizo Kurashige <duke at openjdk.org> wrote:
> Could you tell me what the result would be if you tested using a virtual drive with the iso file mounted instead of a physical CD drive and disk?
I mounted an ISO file on `D:`. Command line execution of `df` in Cygwin:
$ df D:\\
Filesystem 1K-blocks Used Available Use% Mounted on
D: 329600 329600 0 100% /cygdrive/d
Output from the test:
C:\ (508674699264):
getSpace0 total = 322122547200 free = 339768209408 usable = 259194875904
getXSpace total = 322122547200 free = 339768205312 usable = 259194875904
D:\ (0):
getCDDriveSpace total = 0 free = 0 usable = 0
getXSpace total = 337510400 free = 0 usable = 0
FAILED: 'D:\ total space': 337510400 > 0
FAILED: 'D:\ size': 337510400 > 0
24 tests: 2 failure(s); first: java.lang.RuntimeException: 'D:\ total space': 337510400 > 0
java.lang.RuntimeException: 1 test(s) failed
at GetXSpace.main(GetXSpace.java:400)
So I don't see any difference between a physical drive and a mounted ISO file with respect to this test.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21799#issuecomment-2552431097
More information about the core-libs-dev
mailing list