OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // Windows doesn't support sending signals. | 5 // Windows doesn't support sending signals. |
6 @TestOn('!windows') | 6 @TestOn('!windows') |
7 | 7 |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 | 9 |
10 import '../descriptor.dart' as d; | 10 import '../descriptor.dart' as d; |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 main() { | 35 main() { |
36 integration('forwards signals to the inner script', () { | 36 integration('forwards signals to the inner script', () { |
37 d.dir(appPath, [ | 37 d.dir(appPath, [ |
38 d.appPubspec(), | 38 d.appPubspec(), |
39 d.dir("bin", [ | 39 d.dir("bin", [ |
40 d.file("script.dart", SCRIPT) | 40 d.file("script.dart", SCRIPT) |
41 ]) | 41 ]) |
42 ]).create(); | 42 ]).create(); |
43 | 43 |
44 var pub = pubRun(args: ["bin/script"], shouldGetFirst: true); | 44 pubGet(); |
| 45 var pub = pubRun(args: ["bin/script"]); |
45 | 46 |
46 pub.stdout.expect("ready"); | 47 pub.stdout.expect("ready"); |
47 for (var signal in _catchableSignals) { | 48 for (var signal in _catchableSignals) { |
48 pub.signal(signal); | 49 pub.signal(signal); |
49 pub.stdout.expect(signal.toString()); | 50 pub.stdout.expect(signal.toString()); |
50 } | 51 } |
51 | 52 |
52 pub.kill(); | 53 pub.kill(); |
53 }); | 54 }); |
54 } | 55 } |
OLD | NEW |