Merge remote branch 'goog/honeycomb-mr1' into honeycomb-mr2

Conflicts:
	apps/CtsVerifier/AndroidManifest.xml
	tools/host/src/com/android/cts/Version.java

Change-Id: I5e9642c74dd3381865e731567e7decebb9ab2b71
This commit is contained in:
Brian Muramatsu
2011-10-07 11:55:14 -07:00

View File

@@ -118,13 +118,18 @@ public class ListeningPortsTest extends TestCase {
String localAddress = fields[1];
String state = fields[3];
String uid = fields[7];
assertTrue(procFilePath + " should have an IP address in the second column",
isAddress(localAddress));
String localIp = localAddress.split(":")[0];
int localPort = Integer.parseInt(localAddress.split(":")[1], 16);
if (!isException(localAddress) && isPortListening(state, isTcp)) {
throw new ListeningPortsAssertionError(
"Found port listening on " + localAddress + " in " + procFilePath);
"Found port listening on addr=" + localIp + ", port="
+ localPort + ", UID=" + uid + " in " + procFilePath);
}
}
} catch (FileNotFoundException notFound) {