[tests] adds a precondition for symlink test

This commit is contained in:
Roman Shevchenko
2015-08-18 11:31:40 +02:00
parent 5d54b5f78d
commit 14d9c94460
@@ -641,6 +641,11 @@ public class LocalFileSystemTest extends PlatformTestCase {
}
public void testBrokenSymlinkMove() throws IOException, InterruptedException {
if (!SystemInfo.areSymLinksSupported) {
System.err.println(getName() + " skipped: " + SystemInfo.OS_NAME);
return;
}
final File srcDir = IoTestUtil.createTestDir("src");
final File link = IoTestUtil.createSymLink(srcDir.getPath() + "/missing", srcDir.getPath() + "/link", false);
final File dstDir = IoTestUtil.createTestDir("dst");