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

Unified Diff: tests/standalone/io/platform_executable_test.dart

Issue 1158743003: Fix test 'platform_executable_test' (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/platform_executable_test.dart
diff --git a/tests/standalone/io/platform_executable_test.dart b/tests/standalone/io/platform_executable_test.dart
index 0340e64faca0bf5058de01848f923c8f732fffa3..1b6bce377de320ef95678ddda08efb6fb043792d 100644
--- a/tests/standalone/io/platform_executable_test.dart
+++ b/tests/standalone/io/platform_executable_test.dart
@@ -46,8 +46,9 @@ void testDartExecShouldNotBeInCurrentDir() {
void testShouldFailOutsidePath() {
var threw = false;
try {
- Process.runSync(platformExeName, [platformExeName],
- includeParentEnvironment: false, environment: {_SCRIPT_KEY: 'yes'});
+ Process.runSync(platformExeName, ['--version'],
+ includeParentEnvironment: false,
+ environment: {_SCRIPT_KEY: 'yes', 'PATH': ''});
} catch (_) {
threw = true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698