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. |
| 6 @TestOn('!windows') |
| 7 |
5 import 'dart:io'; | 8 import 'dart:io'; |
6 | 9 |
7 import '../descriptor.dart' as d; | 10 import '../descriptor.dart' as d; |
8 import '../test_pub.dart'; | 11 import '../test_pub.dart'; |
9 | 12 |
10 const _catchableSignals = const [ | 13 const _catchableSignals = const [ |
11 ProcessSignal.SIGHUP, | 14 ProcessSignal.SIGHUP, |
12 ProcessSignal.SIGTERM, | 15 ProcessSignal.SIGTERM, |
13 ProcessSignal.SIGUSR1, | 16 ProcessSignal.SIGUSR1, |
14 ProcessSignal.SIGUSR2, | 17 ProcessSignal.SIGUSR2, |
(...skipping 27 matching lines...) Expand all Loading... |
42 | 45 |
43 pub.stdout.expect("ready"); | 46 pub.stdout.expect("ready"); |
44 for (var signal in _catchableSignals) { | 47 for (var signal in _catchableSignals) { |
45 pub.signal(signal); | 48 pub.signal(signal); |
46 pub.stdout.expect(signal.toString()); | 49 pub.stdout.expect(signal.toString()); |
47 } | 50 } |
48 | 51 |
49 pub.kill(); | 52 pub.kill(); |
50 }); | 53 }); |
51 } | 54 } |
OLD | NEW |