mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
skip symlink test if symlink creation is not supported
GitOrigin-RevId: abd903ba747951b5965dfea0b5044dca343450d8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
19332a5d17
commit
834242fcfc
@@ -2,6 +2,7 @@ package com.intellij.compiler;
|
||||
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.util.io.FileUtil;
|
||||
import com.intellij.openapi.util.io.IoTestUtil;
|
||||
import com.intellij.openapi.vfs.LocalFileSystem;
|
||||
import com.intellij.openapi.vfs.VfsUtilCore;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
@@ -184,6 +185,10 @@ public class JavaCompilerBasicTest extends BaseCompilerTestCase {
|
||||
|
||||
|
||||
public void testSymlinksInSources() throws IOException {
|
||||
if (!IoTestUtil.isSymLinkCreationSupported) {
|
||||
System.out.println("Test " + getTestName(false) + " skipped because symlink creation is not supported on this machine");
|
||||
return;
|
||||
}
|
||||
final VirtualFile file = createFile("src/A.java", "public class A {}");
|
||||
VirtualFile srcRoot = file.getParent();
|
||||
final File linkFile = new File(srcRoot.getParent().getPath(), "src-link");
|
||||
|
||||
Reference in New Issue
Block a user