NetworkUtilsTest.testSetSockOptBytes
Use sec but not usec in the test. setsockopt TimeVal may lose precision on usec when kernel rounds up the requested value based on the HZ setting: val = tv.tv_sec * HZ + DIV_ROUND_UP((unsigned long)tv.tv_usec, USEC_PER_SEC / HZ); Bug: 321577714 Test: atest FrameworksNetTests:android.net.connectivity.android.net.NetworkUtilsTest Change-Id: I13a12319370ec2bebe0935f2acdef88bca4d963d
Loading
Please register or sign in to comment