Run debug tests on loopback address
Runs debug tests using address 127.0.0.1 to fit with buildbot
configuration. In order to allow parallel execution, use port '0'
for automatic port selection.
Bug: 37069342
Change-Id: Id8d8697272744b9209232b9bb1bee3782bad97bd
diff --git a/src/test/java/com/android/tools/r8/debug/DebugTestBase.java b/src/test/java/com/android/tools/r8/debug/DebugTestBase.java
index fa7443c..db3dce5d 100644
--- a/src/test/java/com/android/tools/r8/debug/DebugTestBase.java
+++ b/src/test/java/com/android/tools/r8/debug/DebugTestBase.java
@@ -438,6 +438,10 @@
String debuggeeClassPath = String.join(File.pathSeparator, debuggeePath);
setProperty("jpda.settings.debuggeeClasspath", debuggeeClassPath);
+ // Force to localhost (required for continuous testing configuration). Use port '0'
+ // for automatic selection (required when tests are executed in parallel).
+ setProperty("jpda.settings.transportAddress", "127.0.0.1:0");
+
// Set verbosity
setProperty("jpda.settings.verbose", Boolean.toString(DEBUG_TESTS));
}