Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7900228

Fix up/improve test clean up behavior

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • jtreg4.1
    • tools
    • None

      jtreg's handling of the scratch directory is not as clean as it could be, taking into account the need for special handling for deleting files on Windows, and the interaction between cleaning up files and retaining files after a test run.

      For example,

      1. Inconsistent use of boolean returns and exceptions to indicate success or failure, sometimes even on the same method.

      2. Excessive messages to the log when there are issues deleting files (esp on Windows.) It would be better to provide a single list of problem files when the operation is complete.

      3. Extended delay (30 seconds) in samevm mode on Windows for every test when files cannot be deleted from the scratch directory.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: