RFR: 8253624: gtest fails when run from make with read-only source directory

Nick Gasson ngasson at openjdk.java.net
Fri Sep 25 07:53:59 UTC 2020


In an out-of-tree build where the source code is in a read-only location
several gtests such as LogFileOutput.invalid_file_test_vm will fail
because they write files to the current working directory.

  [ RUN ] LogFileOutput.invalid_file_test_vm
  # To suppress the following error report, specify this argument
  # after -XX: or in .hotspotrc: SuppressErrorAt=/logTestUtils.inline.hpp:65
  assert failed: failed to create directory tmplogdir
  #
  # A fatal error has been detected by the Java Runtime Environment:
  #
  # Internal Error (/mnt/nicgas01-pc/jdk/test/hotspot/gtest/logging/logTestUtils.inline.hpp:65), pid=51470, tid=51470
  # assert(!failed) failed: failed to create directory tmplogdir

Run the gtest launcher with the working directory set to the test
support directory which we know is writable.

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

Commit messages:
 - 8253624: gtest fails when run from make with read-only source directory

Changes: https://git.openjdk.java.net/jdk/pull/354/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=354&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8253624
  Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/354.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/354/head:pull/354

PR: https://git.openjdk.java.net/jdk/pull/354



More information about the build-dev mailing list