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

some jtreg tests fail with permission denied

XMLWordPrintable

    • b04
    • generic
    • generic, linux

        Some jtreg tests copy files and directoies from source directory to current directory.
        Of course they doesn't do anythig with permissions. So we could have read only files in our work directory. If test re-write these files or create new files in these copied directories
        it fails with permission denied.
        I suppose that if anyone tries to run tests with jtreg from /java/re/jdk/8/promoted/latest/ws/jdk/test/... it should get same failures.

        There are several ways to fix this CR.
        1) update all tests to use umask (or set permissions after cp)
        2) update jtreg to use umask
        3) always copy tests before execution and make files writable


        I suppose it is the reason of 7110223.
        The list of tests (from 7146361):
        closed/java/net/URLClassLoader/ResExists.java
        java/lang/ClassLoader/Assert.java
        java/rmi/registry/readTest/readTest.sh
        java/util/zip/ZipFile/ReadZip.java
        sun/net/www/protocol/jar/jarbug/run.sh
        tools/javac/ClassPathTest/ClassPathTest.sh

              robm Robert Mckenna
              lmesnik Leonid Mesnik
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: