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

serialization tests should not write files into 'test.src' directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta2
    • generic
    • generic
    • Verified

      Several serialization regression tests attempt to write/create files in the
      directory specified by the system property 'test.src'. When run under jtreg,
      test.src evaluates to the directory containing the source code for the given
      regression test. This can cause the test to fail in cases where the test
      source directory is mounted in read-only mode. Even if the directory is not
      read-only and the test succeeds, it may leave temporary files in a shared
      workspace, which is undesirable.

      Serialization tests which misuse test.src are:

      test/java/io/Serializable/evolution/AddedExternField/ReadAddedField.java
      test/java/io/Serializable/evolution/AddedExternField/WriteAddedField.java
      test/java/io/Serializable/evolution/RenamePackage/test/SerialDriver.java
      test/java/io/Serializable/evolution/RenamePackage/install/SerialDriver.java
      test/java/io/Serializable/class/Test.java

      These tests should be revised to write files in the current directory, which
      jtreg automatically sets to be a scratch directory.

            busersunw Btplusnull User (Inactive)
            mwarressunw Michael Warres (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: