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

Unified Diff: tests/standalone/debugger/debug_lib.dart

Issue 12796012: Use random debug port in basic_debugger_test. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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
Index: tests/standalone/debugger/debug_lib.dart
===================================================================
--- tests/standalone/debugger/debug_lib.dart (revision 20550)
+++ tests/standalone/debugger/debug_lib.dart (working copy)
@@ -10,10 +10,6 @@
import "dart:utf";
import "dart:json" as JSON;
-// TODO(hausner): need to select a different port number for each
-// test that runs in parallel.
-var debugPort = 5860;
-
// Whether or not to print debug target process on the console.
var showDebuggeeOutput = true;
@@ -498,14 +494,12 @@
print("Target process killed");
}
Expect.isTrue(!errorsDetected);
- stdin.close();
- stdout.close();
- stderr.close();
+ exit(errors.length);
}
}
-bool RunScript(List script) {
+bool RunScript(List script, int debugPort) {
var options = new Options();
if (options.arguments.contains("--debuggee")) {
return false;

Powered by Google App Engine
This is Rietveld 408576698