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

Make tests not depend on the source code

    XMLWordPrintable

Details

    • b03

    Backports

      Description

        There are some tests which depend on the presence of the source code in the file hierarchy, as if the tests resided within JDK source tree.

        For example, there is a utility method walking up the file hierarchy in a search for "src" directory: snippets.SnippetUtils.findSourceDir() (in test/langtools/tools/lib/snippets/SnippetUtils.java). Couple of tests which use the method:
        tools/javac/api/snippets/TestJavaxToolsSnippets.java
        jdk/javadoc/doclet/testDocletExample/TestDocletExample.java

        Tests should be fixed not to rely on the file hierarchy.

        Attachments

          Issue Links

            Activity

              People

                asotona Adam Sotona
                shurailine Aleksandre Iline
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: