History log of /libcore/luni/src/test/java/libcore/java/net/OldServerSocketTest.java
Revision Date Author Comments
15ce2944acdcc2171bf2e2ccfa143ba4089dc4d6 09-Feb-2017 Yi Kong <yikong@google.com> Add tests for socket timeouts

Add test coverage that SocketTimeoutException is thrown within the
specified period bound.

Test: libcore.java.net.SocketTimeoutTest
Change-Id: I44bc01a13a6b0c3c5102883739721a865da40c41
969e52ff2fa0125d2f493df0511b292cb8c4107d 20-Jan-2016 Neil Fuller <nfuller@google.com> Allow some rounding on SO_TIMEOUT values

Kernels can round the value in use depending on the HZ setting.
This change allows up to 10ms of slop between the SO_TIMEOUT
value set and the one returned.

Bug: 26583607
Change-Id: I527987de20a6e10172656e1f0beeaf63419ffd77
(cherry picked from commit 6566167989735858978d062a4385104ce5eca7e3)
6566167989735858978d062a4385104ce5eca7e3 20-Jan-2016 Neil Fuller <nfuller@google.com> Allow some rounding on SO_TIMEOUT values

Kernels can round the value in use depending on the HZ setting.
This change allows up to 10ms of slop between the SO_TIMEOUT
value set and the one returned.

Bug: 26583607
Change-Id: I527987de20a6e10172656e1f0beeaf63419ffd77
903b3f5b6a6e524cb4d88b83ea32e7c355392271 19-Jul-2012 Elliott Hughes <enh@google.com> Start removing Support_PortManager.

A bad idea, badly implemented.

Bug: 2441548
Change-Id: I34c990f6fd9d746771846f186a7ab3ab59e78a9f
ec8de076ac382cded43952ba0c2972282b09e1c7 24-Oct-2011 Elliott Hughes <enh@google.com> Fix socket timeout test failures.

The kernel uses awkward device-specific units that make tests with timeouts
that aren't integer multiples of a second awkward.

There's no common superclass for the various sockets, so we can't factor
out the test even though -- apart from the creation of the specific socket --
it's textually identical in each case. Nice library design, boys!

I've also fixed a couple of CloseGuard warnings in passing.

Bug: 5159133
Change-Id: Iaf4c9891b3cf2f5b3ebcee5cb2ba862157ab034e
04e25f30524dc7b51f280912d6ca97d991ae84b0 24-Oct-2011 Elliott Hughes <enh@google.com> Fix socket timeout test failures.

The kernel uses awkward device-specific units that make tests with timeouts
that aren't integer multiples of a second awkward.

There's no common superclass for the various sockets, so we can't factor
out the test even though -- apart from the creation of the specific socket --
it's textually identical in each case. Nice library design, boys!

I've also fixed a couple of CloseGuard warnings in passing.

Bug: 5159133
Change-Id: Iaf4c9891b3cf2f5b3ebcee5cb2ba862157ab034e
1f8243e3d2b5a3f8e0398c304d1dea0395cbc368 28-Sep-2010 Jesse Wilson <jessewilson@google.com> Remove java.net tests that are redundant with Harmony.

Change-Id: I01d6b3633a6de8a075982975d4cbf6c08e757490