diff options
author | Shubham Ajmera <shubhamajmera@google.com> | 2016-08-25 11:34:45 +0100 |
---|---|---|
committer | Shubham Ajmera <shubhamajmera@google.com> | 2016-08-25 17:01:47 +0100 |
commit | 51e3a43f7a1def3d74a594d44c2e18cc40bc2c0d (patch) | |
tree | c3634a440b565a20392313ccbd477e2b951f9842 /annotations/generate_annotated_java_files.py | |
parent | 212618cf79b12a38033b43e76a3367f889b80d61 (diff) |
Fix SocketFactoryTest#test_createSocket_InetAddressIInetAddressI
With http://r.android.com/248420/, the order of BindException and
IllegalArgumentException got reversed as bind(localAddr) was invoked
before checking the correctness of the port. The change now corrects
the order in which the exceptions are expected i.e.,
IllegalArgumentException before BindException(IOException).
Also made a few changes in the tests to have a better understanding of the
actual failures.
Changes in the test:
- Added
test_createSocket_InetAddressIInetAddressI_IllegalArgumentException
to have an independent test for IllegalArgumentException without
having any ambiguity with BindException.
- Added test_createSocket_InetAddressIInetAddressI_ExceptionOrder to
verify the order of BindException and IllegalArgumentException.
Test: run cts -m CtsLibcoreTestCases
Bug: 31019685
Change-Id: Id7d761dcbb78b752247dc2fd469dfa5dc124ee66
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions