From 6a5d54164588d7d2e99324de0198b15793510ba0 Mon Sep 17 00:00:00 2001 From: Konstantin Shcheglov Date: Thu, 15 Feb 2024 19:53:29 +0000 Subject: [PATCH] Macro. Fix test_macroGeneratedFile_existedBeforeLinking on Windows. Change-Id: I91ea4dffa3c318b25a74e9d479abe9accb2326a8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/352942 Reviewed-by: Brian Wilkerson Commit-Queue: Konstantin Shcheglov --- pkg/analyzer/test/src/summary/macro_test.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/analyzer/test/src/summary/macro_test.dart b/pkg/analyzer/test/src/summary/macro_test.dart index 81474328e362..d36aa1f76144 100644 --- a/pkg/analyzer/test/src/summary/macro_test.dart +++ b/pkg/analyzer/test/src/summary/macro_test.dart @@ -1591,7 +1591,8 @@ augment class A { // See https://github.com/dart-lang/sdk/issues/54713 // Create `FileState` with the same name as would be macro generated. // If we don't have implementation to discard it, we will get exception. - driverFor(testFile).getFileSync('$testPackageLibPath/test.macro.dart'); + var macroFile = getFile('$testPackageLibPath/test.macro.dart'); + driverFor(testFile).getFileSync2(macroFile); var library = await buildLibrary(r''' import 'append.dart';