Prior to this patch, both the build and the tests included several
references to C:/.  References in the build assumed that Windows is
installed on C:/, which causes the build to fail when Windows is
installed on a different drive.  The references among tests assumed that
the C:/ drive exists, which although mostly correct, is not guaranteed,
making the tests fragile.

This patch fixes the build references to use the `SYSTEMROOT`
environment variable, which points to the Windows installation path,
instead of hardcoded references to C:/Windows.  This patch also updates
tests to not use the presence of C:/ to detect Windows (instead relying
on the output of `uname -s`) and to not assume that every Windows
installation has a C:/.

-------------

Commit messages:
 - Fix references to Windows drive letter

Changes: https://git.openjdk.org/jdk/pull/30523/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30523&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8381449
  Stats: 34 lines in 5 files changed: 25 ins; 1 del; 8 mod
  Patch: https://git.openjdk.org/jdk/pull/30523.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30523/head:pull/30523

PR: https://git.openjdk.org/jdk/pull/30523

Reply via email to