mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
Check that path is absolute equally for different OSs in tests.
This commit is contained in:
@@ -35,7 +35,12 @@ public class RootFileReferenceSet extends FileReferenceSet {
|
||||
}
|
||||
|
||||
public boolean isAbsolutePathReference() {
|
||||
return FileUtil.isAbsolute(getPathString());
|
||||
if (!ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
return FileUtil.isAbsolute(getPathString());
|
||||
}
|
||||
else {
|
||||
return super.isAbsolutePathReference();
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user