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.
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.
- duplicates
-
CODETOOLS-7900220 jtreg does not delete files in scratch dir on Windows
-
- Resolved
-