Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8253624

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b18
    • OS:
      linux

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ngasson Nick Gasson
              Reporter:
              ngasson Nick Gasson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: