Fix tests for long command line: create folder instead of file

Compiler doesn't allow files as classpath roots
This commit is contained in:
Natalia Selezneva
2019-07-01 13:13:00 +03:00
parent 30222582f4
commit da86ef8454
@@ -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)
}