| // Copyright (c) 2026, 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 'dart:developer'; | |
| import 'common/test_helper.dart'; | |
| Future<void> foo() async {} | |
| Future<void> doAsync(bool stop) async { | |
| if (stop) debugger(); // LINE_D | |
| await foo(); // LINE_A | |
| await foo(); // LINE_B | |
| await foo(); // LINE_C | |
| return; | |
| } | |
| void testMain() { | |
| // With two runs of doAsync floating around, async step should only cause | |
| // us to stop in the run we started in. | |
| doAsync(false); | |
| doAsync(true); | |
| } | |
| Future<void> main([List<String> args = const <String>[]]) { | |
| return startServiceTest(testeeConcurrent: testMain); | |
| } |