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

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

Issue 17539002: Only remove 'PATH' from environment in process_environment_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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/process_environment_test.dart
diff --git a/tests/standalone/io/process_environment_test.dart b/tests/standalone/io/process_environment_test.dart
index 5291751988a2fc3bff39cf689e85b0d6114c9774..cac9380e65da021fba314e2a95b7dadf0d92b07b 100644
--- a/tests/standalone/io/process_environment_test.dart
+++ b/tests/standalone/io/process_environment_test.dart
@@ -53,7 +53,10 @@ testEnvironment() {
testNoIncludeEnvironment() {
var donePort = new ReceivePort();
- runEnvironmentProcess({}, "PATH", false, (output) {
+ var env = Platform.environment;
+ Expect.isTrue(env.containsKey('PATH'));
+ env.remove('PATH');
+ runEnvironmentProcess(env, "PATH", false, (output) {
donePort.close();
Expect.isTrue(output.startsWith("null"));
});
« 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