From a41ed6e4a0a1b36b7a96e10a03aad3e5b36ac31b Mon Sep 17 00:00:00 2001 From: kohsuke Date: Thu, 19 Feb 2009 18:46:37 +0000 Subject: [PATCH] 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 --- core/src/test/java/hudson/FilePathTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/test/java/hudson/FilePathTest.java b/core/src/test/java/hudson/FilePathTest.java index ddac863fb2..56eb082c82 100644 --- a/core/src/test/java/hudson/FilePathTest.java +++ b/core/src/test/java/hudson/FilePathTest.java @@ -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(); } } -- GitLab