mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
[ddc] shard runtime_debugger_api_test.
This test appears to be timing out consistently in windows. We split the test in two shards (sound vs unsound null safety) as an attempt to address this issue. Fixes https://github.com/dart-lang/sdk/issues/54894 Change-Id: I2230be95b1685ef1e5656eae2e740a94a0eeb320 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/352049 Reviewed-by: Nicholas Shahan <nshahan@google.com> Commit-Queue: Sigmund Cherem <sigmund@google.com>
This commit is contained in:
parent
30a94fceaf
commit
955c8d63f6
|
@ -10,27 +10,19 @@ import '../shared_test_options.dart';
|
|||
import 'expression_compiler_e2e_suite.dart';
|
||||
|
||||
void main(List<String> args) async {
|
||||
var driver = await ExpressionEvaluationTestDriver.init();
|
||||
await runAllTests(true, args);
|
||||
}
|
||||
|
||||
Future<void> runAllTests(bool soundNullSafety, List<String> args) async {
|
||||
var driver = await ExpressionEvaluationTestDriver.init();
|
||||
tearDownAll(() async {
|
||||
await driver.finish();
|
||||
});
|
||||
group('(Sound null safety)', () {
|
||||
final mode = soundNullSafety ? 'Sound' : 'Weak';
|
||||
group('($mode null safety)', () {
|
||||
group('(AMD module system)', () {
|
||||
var setup = SetupCompilerOptions(
|
||||
soundNullSafety: true,
|
||||
moduleFormat: ModuleFormat.amd,
|
||||
args: args,
|
||||
enableExperiments: ['inline-class'],
|
||||
);
|
||||
runSharedTests(setup, driver);
|
||||
});
|
||||
});
|
||||
|
||||
group('(Weak null safety)', () {
|
||||
group('(AMD module system)', () {
|
||||
var setup = SetupCompilerOptions(
|
||||
soundNullSafety: false,
|
||||
soundNullSafety: soundNullSafety,
|
||||
moduleFormat: ModuleFormat.amd,
|
||||
args: args,
|
||||
enableExperiments: ['inline-class'],
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
// 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.
|
||||
|
||||
import 'runtime_debugger_api_test.dart' as common_tests;
|
||||
|
||||
void main(List<String> args) async {
|
||||
await common_tests.runAllTests(false, args);
|
||||
}
|
Loading…
Reference in a new issue