commit | 109958dea72142ee133be2400d12410e161587c4 | [log] [tgz] |
---|---|---|
author | Pete Bentley <prb@google.com> | Tue Feb 02 15:11:57 2021 +0000 |
committer | Pete Bentley <prb@google.com> | Wed Feb 03 17:16:56 2021 +0000 |
tree | 849493ac6927472b0649dd30cea46593ac5ebec9 | |
parent | 12a91fc890453bf0340223501dcbd225daf6c3dd [diff] |
Relax test_socket_setSockoptTimeval_effective() on old kernels. On older kernels, timeouts may return a few seconds early so tolerate that on anything older than 3.18, which is the kernel version for a sailfish running O MR1. Converted to JUnit 4 (needed for an earlier patchset) and got rid of a bunch of lint errors while I was in here. Fixes: 176104885 Test: atest CtsLibcoreTestCases:libcore.android.system.OsTest Change-Id: I529e98fe8507cadf007635cdba35e303f8537560