Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333169 - Junit tests leave temporary files around
Summary: Junit tests leave temporary files around
Status: RESOLVED FIXED
Alias: None
Product: MAT
Classification: Tools
Component: Core (show other bugs)
Version: 1.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-23 14:53 EST by Andrew Johnson CLA
Modified: 2010-12-24 06:08 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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