Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: test/run/forwards_signal_posix_test.dart

Issue 1556243002: Fix analyzer hints and warnings in test/. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/run/doesnt_load_an_unnecessary_transformer_test.dart ('k') | test/run/resource_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « test/run/doesnt_load_an_unnecessary_transformer_test.dart ('k') | test/run/resource_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698