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

Unified Diff: sdk/lib/_internal/pub/test/global/binstubs/binstub_runs_executable_test.dart

Issue 599343003: Get binstubs working on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update comment. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/test/global/binstubs/binstub_runs_executable_test.dart
diff --git a/sdk/lib/_internal/pub/test/global/binstubs/binstub_runs_executable_test.dart b/sdk/lib/_internal/pub/test/global/binstubs/binstub_runs_executable_test.dart
index cc3fbdb9b76168d013a5680ca6176482b1529a76..30167b0e796234769d7ca6f6c59c3a4092a454dd 100644
--- a/sdk/lib/_internal/pub/test/global/binstubs/binstub_runs_executable_test.dart
+++ b/sdk/lib/_internal/pub/test/global/binstubs/binstub_runs_executable_test.dart
@@ -10,6 +10,7 @@ import 'package:scheduled_test/scheduled_test.dart';
import '../../descriptor.dart' as d;
import '../../test_pub.dart';
+import 'utils.dart';
main() {
initConfig();
@@ -29,7 +30,8 @@ main() {
schedulePub(args: ["global", "activate", "foo"]);
var process = new ScheduledProcess.start(
- p.join(sandboxDir, cachePath, "bin/foo-script"), ["arg1", "arg2"],
+ p.join(sandboxDir, cachePath, "bin", binStubName("foo-script")),
+ ["arg1", "arg2"],
environment: getEnvironment());
process.stdout.expect("ok [arg1, arg2]");
@@ -52,7 +54,8 @@ main() {
schedulePub(args: ["global", "activate", "-spath", "../foo"]);
var process = new ScheduledProcess.start(
- p.join(sandboxDir, cachePath, "bin/foo-script"), ["arg1", "arg2"],
+ p.join(sandboxDir, cachePath, "bin", binStubName("foo-script")),
+ ["arg1", "arg2"],
environment: getEnvironment());
process.stdout.expect("ok [arg1, arg2]");

Powered by Google App Engine
This is Rietveld 408576698