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

Side by Side Diff: pkg/intl/test/start_web_server.dart

Issue 10962035: Fix typo in start_web_server, re-enable tests (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/pkg.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 5 /**
6 * This file starts a trivial HTTP server to serve locale data files. We start 6 * This file starts a trivial HTTP server to serve locale data files. We start
7 * it as a separate process, then terminate so that the test can continue to 7 * it as a separate process, then terminate so that the test can continue to
8 * run. See web_server.dart for more information. 8 * run. See web_server.dart for more information.
9 */ 9 */
10 10
11 #import("dart:io"); 11 #import("dart:io");
12 #import("dart:isolate"); 12 #import("dart:isolate");
13 13
14 main() { 14 main() {
15 var thisDir = new File(new Options().script).directorySync(); 15 var thisDir = new File(new Options().script).directorySync();
16 var serverPath = "{$thisDir.path}pkg/intl/test/web_server.dart"; 16 var serverPath = "${thisDir.path}/web_server.dart";
17 // TODO(alanknight): This uses nohup and & to stop the child process from 17 // TODO(alanknight): This uses nohup and & to stop the child process from
18 // stopping when we exit. This won't work on Windows. 18 // stopping when we exit. This won't work on Windows.
19 var p = Process.start( 19 var p = Process.start(
20 "nohup", 20 "nohup",
21 [new Options().executable, serverPath, "&"]); 21 [new Options().executable, serverPath, "&"]);
22 p.onExit = (p) => print("Exited abnormally with exit code: $p"); 22 p.onExit = (p) => print("Exited abnormally with exit code: $p");
23 // Give the other process a moment to fully start, and give us a meaningful 23 // Give the other process a moment to fully start, and give us a meaningful
24 // exit code if there's an abnormal exit, before we finish. 24 // exit code if there's an abnormal exit, before we finish.
25 new Timer(1000, (t) => exit(0)); 25 new Timer(1000, (t) => exit(0));
26 } 26 }
OLDNEW
« no previous file with comments | « no previous file | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698