Merge "ProcNetTest: print proc path on assertion failure"
This commit is contained in:
@@ -157,13 +157,13 @@ public class ProcNetTest extends DeviceTestCase implements IBuildReceiver, IDevi
|
||||
for (String interfaceDir : mSysctlDirs) {
|
||||
String path = IPV6_SYSCTL_DIR + "/" + interfaceDir + "/" + "router_solicitations";
|
||||
int value = readIntFromPath(path);
|
||||
assertEquals(IPV6_WIFI_ROUTER_SOLICITATIONS, value);
|
||||
assertEquals(path, IPV6_WIFI_ROUTER_SOLICITATIONS, value);
|
||||
path = IPV6_SYSCTL_DIR + "/" + interfaceDir + "/" + "router_solicitation_max_interval";
|
||||
int interval = readIntFromPath(path);
|
||||
final int lowerBoundSec = 15 * 60;
|
||||
final int upperBoundSec = 60 * 60;
|
||||
assertTrue(lowerBoundSec <= interval);
|
||||
assertTrue(interval <= upperBoundSec);
|
||||
assertTrue(path, lowerBoundSec <= interval);
|
||||
assertTrue(path, interval <= upperBoundSec);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user