| Index: sdk/lib/_internal/pub/test/global/binstubs/name_collision_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/global/binstubs/name_collision_test.dart b/sdk/lib/_internal/pub/test/global/binstubs/name_collision_test.dart
|
| deleted file mode 100644
|
| index e07975a064ca7539abf4ddeaf4b454e623d4e17a..0000000000000000000000000000000000000000
|
| --- a/sdk/lib/_internal/pub/test/global/binstubs/name_collision_test.dart
|
| +++ /dev/null
|
| @@ -1,61 +0,0 @@
|
| -// 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';
|
| -
|
| -main() {
|
| - initConfig();
|
| - integration("does not overwrite an existing binstub", () {
|
| - d.dir("foo", [
|
| - d.pubspec({
|
| - "name": "foo",
|
| - "executables": {
|
| - "foo": "foo",
|
| - "collide1": "foo",
|
| - "collide2": "foo"
|
| - }
|
| - }),
|
| - d.dir("bin", [
|
| - d.file("foo.dart", "main() => print('ok');")
|
| - ])
|
| - ]).create();
|
| -
|
| - d.dir("bar", [
|
| - d.pubspec({
|
| - "name": "bar",
|
| - "executables": {
|
| - "bar": "bar",
|
| - "collide1": "bar",
|
| - "collide2": "bar"
|
| - }
|
| - }),
|
| - 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.");
|
| - pub.stderr.expect("Executable collide2 was already installed from foo.");
|
| - pub.stderr.expect("Deactivate the other package(s) or activate bar using "
|
| - "--overwrite.");
|
| - pub.shouldExit();
|
| -
|
| - d.dir(cachePath, [
|
| - d.dir("bin", [
|
| - d.matcherFile(binStubName("foo"), contains("foo:foo")),
|
| - d.matcherFile(binStubName("bar"), contains("bar:bar")),
|
| - d.matcherFile(binStubName("collide1"), contains("foo:foo")),
|
| - d.matcherFile(binStubName("collide2"), contains("foo:foo"))
|
| - ])
|
| - ]).validate();
|
| - });
|
| -}
|
|
|