Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333169

Summary: Junit tests leave temporary files around
Product: [Tools] MAT Reporter: Andrew Johnson <andrew_johnson>
Component: CoreAssignee: Project Inbox <mat.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Andrew Johnson CLA 2010-12-23 14:53:42 EST
After running the Junit tests a lot of junitNNNNNNNNN directories are left in the temporary files folder. This requires cleaning up regularly to avoid other problems when running out of disk space.
Comment 1 Andrew Johnson CLA 2010-12-23 14:58:21 EST
Some of the problem could be snapshots not being closed.
The pristine snapshots are not retrieved from the cache, but are stored back in the cache so could be given to another test, which might be wrong as pristine snapshots could be build with unusual options.
These should be stored separately (or else the tests should clean them up).

Should Snapshots have a finalizer?

If a copying a dump fails due to lack of disk space then we need to close the file and delete it.
Comment 2 Andrew Johnson CLA 2010-12-24 06:08:12 EST
The test case code is now fixed - I think the remaining files are kept because of DTFJ not cleaning up properly - see bug 333004