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

PropertiesTest.sh fails to make $WRITABLEJDK writable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: core-libs
    • Labels:

      Description

      The intent of this line in PropertiesTest.sh:

      chmod -R a+rx $WRITABLEJDK || exit 1

      is to make $WRITABLEJDK writable, but it fails miserably.

      Demo:
       $ pwd; chmod -R u-w ../build; /home/martin/jtreg-binaries/current/bin/jtreg -noreport -verbose:nopass,fail,error -jdk:/home/martin/ws/up/test/../build/linux-x86_64-normal-server-release/images/jdk jdk/java/util/Currency/PropertiesTest.sh; chmod -R u+w ../build
      ...
      cp: cannot create regular file './testjava/lib/currency.properties': Permission denied

        Attachments

          Activity

            People

            Assignee:
            martin Martin Buchholz
            Reporter:
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: