Skip to content

Commit

Permalink
Macro. Fix test_macroGeneratedFile_existedBeforeLinking on Windows.
Browse files Browse the repository at this point in the history
Change-Id: I91ea4dffa3c318b25a74e9d479abe9accb2326a8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/352942
Reviewed-by: Brian Wilkerson <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
  • Loading branch information
scheglov authored and Commit Queue committed Feb 15, 2024
1 parent d727cb0 commit 6a5d541
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/analyzer/test/src/summary/macro_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 6a5d541

Please sign in to comment.