diff --git a/pkg/dev_compiler/test/expression_compiler/runtime_debugger_api_test.dart b/pkg/dev_compiler/test/expression_compiler/runtime_debugger_api_test.dart index c62e1e95b49..11d1de06cfd 100644 --- a/pkg/dev_compiler/test/expression_compiler/runtime_debugger_api_test.dart +++ b/pkg/dev_compiler/test/expression_compiler/runtime_debugger_api_test.dart @@ -10,27 +10,19 @@ import '../shared_test_options.dart'; import 'expression_compiler_e2e_suite.dart'; void main(List args) async { - var driver = await ExpressionEvaluationTestDriver.init(); + await runAllTests(true, args); +} +Future runAllTests(bool soundNullSafety, List 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'], diff --git a/pkg/dev_compiler/test/expression_compiler/runtime_debugger_api_unsound_test.dart b/pkg/dev_compiler/test/expression_compiler/runtime_debugger_api_unsound_test.dart new file mode 100644 index 00000000000..b6420926208 --- /dev/null +++ b/pkg/dev_compiler/test/expression_compiler/runtime_debugger_api_unsound_test.dart @@ -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 args) async { + await common_tests.runAllTests(false, args); +}