From 5f18cd99a46605fc7a5c409a27eb957746d87ef0 Mon Sep 17 00:00:00 2001 From: Konstantin Shcheglov Date: Sun, 26 Sep 2021 18:28:44 +0000 Subject: [PATCH] Fix AnalysisDriverCachingTest on Windows. Change-Id: I4b10e4fb5ebbf9d3e12ce5b8217d8d86564ae4f1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214509 Reviewed-by: Brian Wilkerson Commit-Queue: Konstantin Shcheglov --- .../test/src/dart/analysis/driver_caching_test.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg/analyzer/test/src/dart/analysis/driver_caching_test.dart b/pkg/analyzer/test/src/dart/analysis/driver_caching_test.dart index 230b7cd9ba3..e6f424c106e 100644 --- a/pkg/analyzer/test/src/dart/analysis/driver_caching_test.dart +++ b/pkg/analyzer/test/src/dart/analysis/driver_caching_test.dart @@ -18,6 +18,8 @@ main() { @reflectiveTest class AnalysisDriverCachingTest extends PubPackageResolutionTest { + String get testFilePathPlatform => convertPath(testFilePath); + List> get _linkedCycles { var driver = driverFor(testFilePath); return driver.test.libraryContext.linkedCycles; @@ -30,7 +32,7 @@ class A { } '''); - driverFor(testFilePath).changeFile(testFilePath); + driverFor(testFilePathPlatform).changeFile(testFilePathPlatform); await resolveTestCode(r''' class A { factory A() =; @@ -46,7 +48,7 @@ class A { } '''); - driverFor(testFilePath).changeFile(testFilePath); + driverFor(testFilePathPlatform).changeFile(testFilePathPlatform); await resolveTestCode(r''' class A { factory A() = @@ -62,7 +64,7 @@ class A { } '''); - driverFor(testFilePath).changeFile(testFilePath); + driverFor(testFilePathPlatform).changeFile(testFilePathPlatform); await resolveTestCode(r''' class A { const