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

Side by Side Diff: tests/standalone/io/process_environment_test.dart

Issue 10252020: test rename overhaul: step 12 - standalone (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #import('dart:io'); 5 #import('dart:io');
6 #import('dart:isolate'); 6 #import('dart:isolate');
7 #source('ProcessTestUtil.dart'); 7 #source('process_test_util.dart');
8 8
9 runEnvironmentProcess(Map environment, name, callback) { 9 runEnvironmentProcess(Map environment, name, callback) {
10 var dartExecutable = getDartFileName(); 10 var dartExecutable = getDartFileName();
11 var options = new ProcessOptions(); 11 var options = new ProcessOptions();
12 options.environment = environment; 12 options.environment = environment;
13 var printEnv = 'tests/standalone/src/io/PrintEnv.dart'; 13 var printEnv = 'tests/standalone/io/print_env.dart';
14 if (!new File(printEnv).existsSync()) { 14 if (!new File(printEnv).existsSync()) {
15 printEnv = '../$printEnv'; 15 printEnv = '../$printEnv';
16 } 16 }
17 var process = new Process.run(dartExecutable, 17 var process = new Process.run(dartExecutable,
18 [printEnv, name], 18 [printEnv, name],
19 options, 19 options,
20 (exit, out, err) { 20 (exit, out, err) {
21 Expect.equals(0, exit); 21 Expect.equals(0, exit);
22 callback(out); 22 callback(out);
23 }); 23 });
(...skipping 24 matching lines...) Expand all
48 }); 48 });
49 // Only check one value to not spin up too many processes testing the 49 // Only check one value to not spin up too many processes testing the
50 // same things. 50 // same things.
51 break; 51 break;
52 } 52 }
53 } 53 }
54 54
55 main() { 55 main() {
56 testEnvironment(); 56 testEnvironment();
57 } 57 }
OLDNEW
« no previous file with comments | « tests/standalone/io/process_check_arguments_test.dart ('k') | tests/standalone/io/process_exit_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698