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

Unified Diff: dart/frog/tests/frog/src/NodeProcessHelper.dart

Issue 10164004: Remove frogsh. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 8 years, 8 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 | « dart/frog/tests/frog/src/NodeConsoleTest.dart ('k') | dart/frog/tests/frog/src/NodeProcessTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/tests/frog/src/NodeProcessHelper.dart
diff --git a/dart/frog/tests/frog/src/NodeProcessHelper.dart b/dart/frog/tests/frog/src/NodeProcessHelper.dart
deleted file mode 100644
index c09a99b791d8f72da6feacd3728f70b261f6c324..0000000000000000000000000000000000000000
--- a/dart/frog/tests/frog/src/NodeProcessHelper.dart
+++ /dev/null
@@ -1,87 +0,0 @@
-// Copyright (c) 2011, 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.
-
-#library('NodeProcessHelper');
-
-#import('../../../lib/node/node.dart');
-#import('NodeTestHelper.dart');
-
-// This program is designed to be executed as a sub-process by NodeProcessTest
-// (Node doesn't expose "dup" or "dup2", so this is the only way to capture
-// the output of stderr, stdout during testing.)
-
-main() {
- printTestOutputBanner();
- var argv = process.argv;
- switch (argv[2]) {
- case 'event-exit':
- process.onExit(() => console.log('exit'));
- break;
-
- case 'event-uncaughtException':
- process.onUncaughtException((Exception err) =>
- console.log('uncaughtException: ' + err));
- /*
- try {
- throw new Exception('exception1');
- } catch (Exception e) {
- // ignore
- }
- */
- throw new Exception('exception2');
-
- case 'event-catchsignal':
- process.onSignal('SIGUSR1', () => console.log('caught signal'));
- process.kill(process.pid, 'SIGUSR1');
- break;
-
- case 'stdout':
- process.stdout.write('stdout\n');
- break;
-
- case 'stderr':
- process.stderr.write('stderr\n');
- break;
-
- case 'stdin':
- // copy stdin to stdout, assumes caller will write to stdin
- process.stdin.resume();
- process.stdin.pipe(process.stdout);
- break;
-
- case 'argv':
- console.log(process.argv[2]);
- break;
-
- case 'execPath':
- console.log(process.execPath);
- break;
-
- case 'chdir-cwd':
- process.chdir('/');
- console.log(process.cwd());
- break;
-
- // case 'env':
- // TODO(jackpal): env not implemented.
- // console.log(process.env['PWD']);
- // break;
-
- case 'exitCode':
- process.exit(42);
- break;
-
- case 'gid':
- console.log(process.getgid().toString());
- break;
-
- case 'uid':
- console.log(process.getuid().toString());
- break;
-
- default:
- console.error('unknown argument. argv=${argv}');
- break;
- }
-}
« no previous file with comments | « dart/frog/tests/frog/src/NodeConsoleTest.dart ('k') | dart/frog/tests/frog/src/NodeProcessTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698