fixed a test failure on Windows

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@22315 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-10-01 17:42:58 +00:00
1 parent b793703795
commit 5abbdff34b
1 file changed
+3 -3
+3 -3
View File
@@ -94,12 +94,12 @@ public class FilePathTest extends TestCase {
File tmp = File.createTempFile("testCopyFrom","");
FilePath f = new FilePath(tmp);
File tmp2 = File.createTempFile("testCopyTo","");
FilePath f2 = new FilePath(british,tmp.getPath());
FilePath f2 = new FilePath(british,tmp2.getPath());
f.copyTo(f2);
assertTrue("could not delete target " + tmp.getPath(), tmp.delete());
assertTrue("could not delete target " + tmp2.getPath(), tmp2.delete());
assertTrue("could not delete target " + tmp.getPath(), f.delete());
assertTrue("could not delete target " + tmp2.getPath(), f2.delete());
}
}