delete the integration test temp files when the test is over

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1727 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
aaron 2009-09-25 16:34:08 +00:00
parent 2b7d39035a
commit 130a01a40a
1 changed files with 3 additions and 1 deletions

View File

@ -101,7 +101,9 @@ public class WalkerTest extends BaseTest {
List<File> tmpFiles = new ArrayList<File>();
for ( int i = 0; i < spec.nOutputFiles; i++ ) {
try {
tmpFiles.add( File.createTempFile(String.format("walktest.tmp_param.%d", i), ".tmp" ) );
File fl = File.createTempFile(String.format("walktest.tmp_param.%d", i), ".tmp" );
fl.deleteOnExit();
tmpFiles.add( fl );
} catch (IOException ex) {
System.err.println("Cannot create temp file: " + ex.getMessage());
}