[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:
Sigmund Cherem 2024-02-13 20:10:17 +00:00 committed by Commit Queue
parent 30a94fceaf
commit 955c8d63f6
2 changed files with 16 additions and 15 deletions

View file

@ -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'],

View file

@ -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);
}