From cf26bc510195bb3a699f6ef6080334559bad7b3c Mon Sep 17 00:00:00 2001 From: Mihail Buryakov Date: Tue, 23 Sep 2025 08:23:47 +0300 Subject: [PATCH] [vfs] fix test fixture so that fake eel fs can be access using eel api GitOrigin-RevId: 8d6920f3ea7a4b3c3541d65f2b1db4ed48f2508b --- .../junit5/eel/src/impl/nio/EelUnitTestFileSystem.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/testFramework/junit5/eel/src/impl/nio/EelUnitTestFileSystem.kt b/platform/testFramework/junit5/eel/src/impl/nio/EelUnitTestFileSystem.kt index 660eeb41b391..9d2723c7464c 100644 --- a/platform/testFramework/junit5/eel/src/impl/nio/EelUnitTestFileSystem.kt +++ b/platform/testFramework/junit5/eel/src/impl/nio/EelUnitTestFileSystem.kt @@ -55,7 +55,9 @@ internal class EelUnitTestFileSystem(val provider: FileSystemProvider, val os: E else if (first.startsWith(fakeLocalRoot.replace(File.separatorChar, '/'))) { first.substringAfter(fakeLocalRoot.replace(File.separatorChar, '/')) } - else { + else if (first.replace(File.separatorChar, '/').startsWith('/')) { + first + } else { null } if (remaining != null) {