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 'package:scheduled_test/scheduled_test.dart'; |
| 11 |
10 import '../descriptor.dart' as d; | 12 import '../descriptor.dart' as d; |
11 import '../test_pub.dart'; | 13 import '../test_pub.dart'; |
12 | 14 |
13 const _catchableSignals = const [ | 15 const _catchableSignals = const [ |
14 ProcessSignal.SIGHUP, | 16 ProcessSignal.SIGHUP, |
15 ProcessSignal.SIGTERM, | 17 ProcessSignal.SIGTERM, |
16 ProcessSignal.SIGUSR1, | 18 ProcessSignal.SIGUSR1, |
17 ProcessSignal.SIGUSR2, | 19 ProcessSignal.SIGUSR2, |
18 ProcessSignal.SIGWINCH, | 20 ProcessSignal.SIGWINCH, |
19 ]; | 21 ]; |
(...skipping 26 matching lines...) Expand all Loading... |
46 | 48 |
47 pub.stdout.expect("ready"); | 49 pub.stdout.expect("ready"); |
48 for (var signal in _catchableSignals) { | 50 for (var signal in _catchableSignals) { |
49 pub.signal(signal); | 51 pub.signal(signal); |
50 pub.stdout.expect(signal.toString()); | 52 pub.stdout.expect(signal.toString()); |
51 } | 53 } |
52 | 54 |
53 pub.kill(); | 55 pub.kill(); |
54 }); | 56 }); |
55 } | 57 } |
OLD | NEW |