commit | 6bdc41f3fb7e7aef87ef3ee731960c5e720c3acf | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Fri Jun 10 01:54:52 2016 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Fri Jun 10 11:35:51 2016 +0900 |
tree | 329acce8bf31efe8719a8810710aa05f5b3ed996 | |
parent | 98ba4566752d640d97205389781705f7aaea1c63 [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 Change-Id: Iab423dba0aa30466481dd3a7304aa8f69c5cf605