Fix tests for long command line: create folder instead of file
Compiler doesn't allow files as classpath roots
This commit is contained in:
@@ -65,7 +65,7 @@ fun createLibraryWithLongPaths(project: Project): Library {
|
||||
for (i in 0..maxCommandlineLengthWindows / maxFilenameLengthWindows) {
|
||||
val tmpFile = VirtualFileManager.constructUrl(
|
||||
LocalFileSystem.getInstance().protocol,
|
||||
FileUtil.createTempFile("file$i", "a".repeat(maxFilenameLengthWindows)).path
|
||||
FileUtil.createTempDirectory("file$i", "a".repeat(maxFilenameLengthWindows)).path
|
||||
)
|
||||
addRoot(tmpFile, OrderRootType.CLASSES)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user