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

Side by Side Diff: test/global/activate/outdated_binstub_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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 import 'dart:io';
6 import 'dart:async';
7
8 import 'package:path/path.dart' as p;
9 import 'package:scheduled_test/scheduled_process.dart';
10 import 'package:scheduled_test/scheduled_stream.dart';
11 import 'package:scheduled_test/scheduled_test.dart'; 5 import 'package:scheduled_test/scheduled_test.dart';
12 6
13 import '../../descriptor.dart' as d; 7 import '../../descriptor.dart' as d;
14 import '../../test_pub.dart'; 8 import '../../test_pub.dart';
15 9
16 const _OUTDATED_BINSTUB = """ 10 const _OUTDATED_BINSTUB = """
17 #!/usr/bin/env sh 11 #!/usr/bin/env sh
18 # This file was created by pub v0.1.2-3. 12 # This file was created by pub v0.1.2-3.
19 # Package: foo 13 # Package: foo
20 # Version: 1.0.0 14 # Version: 1.0.0
(...skipping 27 matching lines...) Expand all
48 schedulePub(args: ["global", "activate", "foo"]); 42 schedulePub(args: ["global", "activate", "foo"]);
49 43
50 d.dir(cachePath, [ 44 d.dir(cachePath, [
51 d.dir('bin', [ 45 d.dir('bin', [
52 // 253 is the VM's exit code upon seeing an out-of-date snapshot. 46 // 253 is the VM's exit code upon seeing an out-of-date snapshot.
53 d.matcherFile(binStubName('foo-script'), contains("253")) 47 d.matcherFile(binStubName('foo-script'), contains("253"))
54 ]) 48 ])
55 ]).validate(); 49 ]).validate();
56 }); 50 });
57 } 51 }
OLDNEW
« no previous file with comments | « test/global/activate/activate_hosted_after_git_test.dart ('k') | test/global/binstubs/binstub_runs_executable_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698