Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CFE] Allow crash test minimizer to work in more scenarios
This change allows to reproduce and minimize the bug in https://dart-review.googlesource.com/c/sdk/+/385441/2 via this (mouthful) of a command: ``` out/ReleaseX64/dart pkg/front_end/test/crashing_test_case_minimizer.dart --platform=out/ReleaseX64/vm_platform_strong.dill --invalidate=package:_fe_analyzer_shared/src/messages/codes.dart --invalidate=package:front_end/src/type_inference/assignable_errors.dart --initial-only-outline --load-from-component-before-invalidate --invalidate-all-at-once --packages=.dart_tool/package_config.json pkg/front_end/lib/src/type_inference/assignable_errors.dart ``` Which - after renames - creates a reproduction like this: ``` # Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. # Reproduce a crash. type: newworld worlds: - entry: - a.dart sources: a.dart: | import 'b.dart'; b.dart: | export 'c.dart'; c.dart: | class Message {} typedef SummaryTemplate = Message Function(int, int, num, num, num); expectedLibraryCount: 3 - entry: - a.dart worldType: updated expectInitializeFromDill: false invalidate: - c.dart - a.dart expectedLibraryCount: 3 advancedInvalidation: bodiesOnly ``` (this was already reproduced and fixed in https://dart-review.googlesource.com/c/sdk/+/385720 but still) Change-Id: I63d5510b1b848309cc4c74a15cdc1f33400d4861 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/385740 Reviewed-by: Johnni Winther <[email protected]> Commit-Queue: Jens Johansen <[email protected]>
- Loading branch information