delete tmporary file created during a test

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15456 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-02-19 18:46:37 +00:00
1 parent c10286e125
commit a41ed6e4a0
1 file changed
+2 -1
+2 -1
View File
@@ -77,9 +77,10 @@ public class FilePathTest extends TestCase {
}
public void testCopyTo() throws Exception {
File tmp = File.createTempFile("tmp","");
File tmp = File.createTempFile("testCopyTo","");
FilePath f = new FilePath(french,tmp.getPath());
f.copyTo(new NullStream());
tmp.delete();
}
}