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

Side by Side Diff: sdk/lib/_internal/pub/test/global/activate/outdated_binstub_test.dart

Issue 899373002: Update pub to use the VM's new bad-snapshot exit code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix status and one more test Created 5 years, 10 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 | Annotate | Revision Log
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'; 5 import 'dart:io';
6 import 'dart:async'; 6 import 'dart:async';
7 7
8 import 'package:path/path.dart' as p; 8 import 'package:path/path.dart' as p;
9 import 'package:scheduled_test/scheduled_process.dart'; 9 import 'package:scheduled_test/scheduled_process.dart';
10 import 'package:scheduled_test/scheduled_stream.dart'; 10 import 'package:scheduled_test/scheduled_stream.dart';
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 d.dir(cachePath, [ 43 d.dir(cachePath, [
44 d.dir('bin', [ 44 d.dir('bin', [
45 d.file(binStubName('foo-script'), _OUTDATED_BINSTUB) 45 d.file(binStubName('foo-script'), _OUTDATED_BINSTUB)
46 ]) 46 ])
47 ]).create(); 47 ]).create();
48 48
49 schedulePub(args: ["global", "activate", "foo"]); 49 schedulePub(args: ["global", "activate", "foo"]);
50 50
51 d.dir(cachePath, [ 51 d.dir(cachePath, [
52 d.dir('bin', [ 52 d.dir('bin', [
53 // 255 is the VM's exit code upon seeing an out-of-date snapshot. 53 // 253 is the VM's exit code upon seeing an out-of-date snapshot.
54 d.matcherFile(binStubName('foo-script'), contains("255")) 54 d.matcherFile(binStubName('foo-script'), contains("253"))
55 ]) 55 ])
56 ]).validate(); 56 ]).validate();
57 }); 57 });
58 } 58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698