OLD | NEW |
1 // Copyright (c) 2016, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 // Test that the VM does not crash when listing processes. This targets a | 5 // Test that the VM does not crash when listing processes. This targets a |
6 // regression where we might not have paused all processes when stopped at a | 6 // regression where we might not have paused all processes when stopped at a |
7 // breakpoint. Not doing so could cause inconsistent process structures to be | 7 // breakpoint. Not doing so could cause inconsistent process structures to be |
8 // accessed. | 8 // accessed. |
9 | 9 |
10 import 'dart:fletch'; | 10 import 'dart:fletch'; |
11 | 11 |
(...skipping 19 matching lines...) Expand all Loading... |
31 channel.receive(); | 31 channel.receive(); |
32 } | 32 } |
33 | 33 |
34 main() { | 34 main() { |
35 Channel channel = new Channel(); | 35 Channel channel = new Channel(); |
36 Port child1 = spawnChild(channel); | 36 Port child1 = spawnChild(channel); |
37 Port child2 = spawnChild(channel); | 37 Port child2 = spawnChild(channel); |
38 resumeChild(channel, child1); | 38 resumeChild(channel, child1); |
39 resumeChild(channel, child2); | 39 resumeChild(channel, child2); |
40 } | 40 } |
OLD | NEW |