Index: sdk/lib/_internal/pub_generated/test/global/binstubs/name_collision_test.dart |
diff --git a/sdk/lib/_internal/pub_generated/test/global/binstubs/name_collision_test.dart b/sdk/lib/_internal/pub_generated/test/global/binstubs/name_collision_test.dart |
index 01fe3f0f9b2d0a1ad88ac33a7235b22c968b6eef..91c385d1ab397573878e615a98291354517e2bd1 100644 |
--- a/sdk/lib/_internal/pub_generated/test/global/binstubs/name_collision_test.dart |
+++ b/sdk/lib/_internal/pub_generated/test/global/binstubs/name_collision_test.dart |
@@ -1,8 +1,14 @@ |
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
import 'package:scheduled_test/scheduled_stream.dart'; |
import 'package:scheduled_test/scheduled_test.dart'; |
+ |
import '../../descriptor.dart' as d; |
import '../../test_pub.dart'; |
import 'utils.dart'; |
+ |
main() { |
initConfig(); |
integration("does not overwrite an existing binstub", () { |
@@ -15,6 +21,7 @@ main() { |
} |
}), |
d.dir("bin", [d.file("foo.dart", "main() => print('ok');")])]).create(); |
+ |
d.dir("bar", [d.pubspec({ |
"name": "bar", |
"executables": { |
@@ -24,7 +31,9 @@ main() { |
} |
}), |
d.dir("bin", [d.file("bar.dart", "main() => print('ok');")])]).create(); |
+ |
schedulePub(args: ["global", "activate", "-spath", "../foo"]); |
+ |
var pub = startPub(args: ["global", "activate", "-spath", "../bar"]); |
pub.stdout.expect(consumeThrough("Installed executable bar.")); |
pub.stderr.expect("Executable collide1 was already installed from foo."); |
@@ -32,6 +41,7 @@ main() { |
pub.stderr.expect( |
"Deactivate the other package(s) or activate bar using " "--overwrite."); |
pub.shouldExit(); |
+ |
d.dir( |
cachePath, |
[ |