commit | 002502a10fd28dcafe5c0f43ac2f98c3ade55854 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Fri Jun 10 01:54:52 2016 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Tue Oct 25 17:50:17 2016 +0900 |
tree | 794841ffd060d56e9349573497fbe9b9fafe8a26 | |
parent | 8054577a51024c7883f0141181c9c527265c0ee8 [diff] |
Verify expectations better in SockDiagTest. Currently SockDiagTest only checks for socket errors, it does not check that the socket was closed via SOCK_DESTROY. This can cause us to think that SOCK_DESTROY is working when it isn't. Fix this by checking the error codes and expecting that at least one socket was closed by SOCK_DESTROY. Bug: 28508161 (cherry picked from commit 6bdc41f3fb7e7aef87ef3ee731960c5e720c3acf) Change-Id: I0e0368145247bfd0f946692381dcd78991811413