提交 5abbdff3 编写于 作者: K kohsuke

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
上级 b7937037
......@@ -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());
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册