[gardening] Fix instruction_sizes_test on Windows

Bug: https://github.com/dart-lang/sdk/issues/45354
Change-Id: Idbf22076bf01e9dcbe20a6d99993b3283edc067f
TEST=ci
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/267244
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Alexander Aprelev <aam@google.com>
This commit is contained in:
Alexander Aprelev 2022-11-03 01:50:48 +00:00 committed by Commit Queue
parent 6539e200b8
commit 4ae1500152

View file

@ -844,14 +844,8 @@ void main() async {
// Verify that we don't include package names twice into paths
// while building the treemap.
if (Platform.isWindows) {
// Note: in Windows we don't consider main.dart part of package:input
// for some reason.
expect(findChild(treemap, 'package:input/input.dart'), isNotNull);
} else {
expect(childrenNames(findChild(treemap, 'package:input')!),
equals({'main.dart', 'input.dart'}));
}
expect(childrenNames(findChild(treemap, 'package:input')!),
equals({'main.dart', 'input.dart'}));
});
});