Commit Graph
52 Commits
Author SHA1 Message Date
Alexander Köplinger 48e112d652 [Cleanup] Removed TARGET_JVM
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Alex Rønne Petersen dff4b38a95 [System] Add more logging to the BeginConnectMultiple test. 2014-07-03 02:46:21 +02:00
Alex Rønne Petersen 26789fb447 [System] Add some debugging code to BeginConnectMultiple test.
The WaitOne () call has a tendency to time out on the Jenkins
VMs. However, reproducing the problem outside of Jenkins has
proven futile.

This makes the WaitOne () call block for as long as needed and
still fails the test if the elapsed time was longer than 30s.
We print the actual elapsed time to the console.

Hopefully this'll help us find out if it's just taking quite a
long time to run or if it's a hang.
2014-07-03 02:20:11 +02:00
Alex Rønne Petersen 3d3da63af5 [System] Up the timeout in the BeginConnectMultiple test to 30s.
Most Linux systems have the net.ipv4.tcp_syn_retries sysctl
set to 5 or 6, so we need at least 30 seconds here.
2014-06-26 20:40:06 +02:00
Alexander Köplinger b0032294da [Test] Cleaned up how a bunch of tests were ignored
Previously, many tests just had a return statement when the test shouldn't
be executed (e.g. Unix-only). This made it look like the test was successful
when in fact it wasn't executed at all.
Assert.Ignore() is now used instead to correctly exclude those tests.
2014-02-23 19:44:21 +01:00
Master T 962a30b605 SocketTest: added tests for multicast index handling for MulticastOption class and MulticastInterface socket option
This commit is under the MIT license.
2013-11-27 00:18:46 +01:00
Miguel de Icaza e8be3702fc Merge pull request #585 from mk8/master
Bug 10233 fix proposal for Socket.BeginSendFIle
2013-03-04 08:13:10 -08:00
Torello Querci 8691f6d8d1 Client Socket close added 2013-03-02 08:31:14 +01:00
Marek Safar 7a1ad27ff0 Disable failing socket test 2013-03-01 17:13:24 +01:00
Torello Querci 0624fa42f1 Fix for bug 10233 about Socket.BeginSendFile 2013-03-01 14:30:04 +01:00
Martin Baulig 0c23aaa36b Improve SocketTests.EndConnect().
Rename to BogusEndConnect() and accept a few more error codes.
2012-06-30 05:45:09 +02:00
Martin Baulig f3b7c4e856 SocketTest.ConnectMultiple() for Mac OS. 2012-06-30 05:45:09 +02:00
Martin Baulig cc224125a4 Enable the multicast socket tests on the Mac. 2012-06-28 20:41:50 +02:00
Vinicius Jarina 7c32f15193 Removed broken tests from System 2012-06-04 09:12:20 -03:00
Gonzalo Paniagua Javier 47cc2b607d [socket] Fixed other BeginConnect overloads
The BeginConnect overload taking an IPAddress[] was not really
	asynchronous.
2011-04-26 11:02:22 -04:00
Sebastien Pouliot 966a4e1990 Fix buffer checks on Socket.[Receive|Send]Async
* System.Net.Sockets/Socket_2_1.cs: Fix, by explicitely throwing an NRE,
the checks in [Receive|Send]Async methods - otherwise an exception would
occur later, on another thread and close the socket (leading to other,
unexpected, exceptions)

* Test/System.Net.Sockets/SocketTest.cs: Add parameter validation test
cases for both ReceiveAsync and SendAsync
2010-09-29 14:33:20 -04:00
Sebastien Pouliot c3b5cb557e Add test case to show a different behavior (from Windows) wrt Socket buffers
* Test/System.Net.Sockets/SocketTest.cs: Add test case where buffers can
be set to 0 under Windows (but has a 256 bytes minimum on Linux)
2010-09-23 17:10:05 -04:00
Gonzalo Paniagua Javier 884680ede3 LocalEndPoint works now for non-blocking connects
We didn't keep the endpoint around for non-blocking connects and later,
	when Poll() was called, we didn't have the information. Also 'isbound'
	wasn't being set in a few places and UDP sockets needed to be marked as
	not connected after a call to Connect() with an Any address.

	Removed an old test for Connect(Any) with UDP sockets, since this is
	used to disconnect them now.

	Fixes bug #640749.
2010-09-22 12:39:07 -04:00
Gonzalo Paniagua Javier 3efb4c4a29 new test
svn path=/trunk/mcs/; revision=145809
2009-11-10 05:56:22 +00:00
Gert Driesen 916aaf1dbb * SocketTest.cs: Added tests for argument checks, and improved tests
for disposed socket.
* Socket.cs: Modified some argument names to match MS. Moved disposed
check before argument checks in Receive. Use SocketError.InvalidArgument
instead of using magic numbers. Added back comments that was 
accidentally removed in my previous commit.
* Socket_2_1.cs: Modified some argument names to match MS.

svn path=/trunk/mcs/; revision=137051
2009-06-28 20:39:25 +00:00
Gert Driesen ba798b342d * System_test.dll.sources: Added IPv6MulticastOptionTest.cs and
MulticastOptionTest.cs.
* Socket.cs: In GetSocketOption, throw SocketException when (byte [])
option value is null. Use SocketError fields instead of using "magic"
number. In SetSocketOption (SocketOptionLevel, SocketOptionName, object)
only accept Linger, AddMembership, DropMembership and verify option
value.
* MulticastOption.cs: Added argument checks. Save interfaceIndex that is
passed to .ctor, and removed MonoTODO. Renamed arguments to match MS.
Reset InterfaceIndex when LocalAddress is modified, and reset
LocalAddress when InterfaceIndex is modified.
* UdpClient.cs: Modified exception to more closely match MS. Fixed
(int, AddressFamily) .ctor to construct IPv6 endpoint when family is
InterNetworkV6. Added null check for multicastAddr to (IPAddress)
JoinMulticastGroup overload. In (int, IPAddress) and (IPAddress,
IPAddress) overloads of JoinMulticastGroup throw SocketException when
client is IPv4. Added null check for multicastAddr to (IPAddress, int),
overload, and moved JoinMulticastGroup call after argument checks.
* IPv6MulticastOption.cs: Renamed argument names to match MS. Added
null check to set_Group. Added range check to set_InterfaceIndex.
* IPv6MulticastOptionTest.cs: Added .ctor and property tests.
* MulticastOptionTest.cs: Added .ctor and property tests.
* SocketTest.cs: Fixed compiler warnings. Improved tests for
closed socket. Added tests fr GetSocketOption, and SetSocketOption
overloads (for Linger, DontLinger, AddMembership and DropMembership).
* UdpClientTest.cs: Added .ctor and JoinMulticastGroup tests.

svn path=/trunk/mcs/; revision=137048
2009-06-28 16:35:54 +00:00
Gonzalo Paniagua Javier 1c7df92ca0 new test
svn path=/trunk/mcs/; revision=137033
2009-06-27 18:03:35 +00:00
Gonzalo Paniagua Javier 72754e7d4d 2009-06-26 Gonzalo Paniagua Javier <[email protected]>
* SocketTest.cs: tests for DontLinger.


svn path=/trunk/mcs/; revision=136982
2009-06-26 16:34:58 +00:00
Robert Jordan 2f26089775 2009-06-26 Robert Jordan <[email protected]>
* *.cs: Upgrade to new NUnit style.


svn path=/trunk/mcs/; revision=136949
2009-06-26 12:20:08 +00:00
Miguel de Icaza a87e065bae Add test for bug 471580
svn path=/trunk/mcs/; revision=125822
2009-02-05 05:58:23 +00:00
Gonzalo Paniagua Javier ca31518c5a 2009-01-26 Gonzalo Paniagua Javier <[email protected]>
* SocketTest.cs:
	(TestSelect1) avoid RST by reading the bytes from the client.

svn path=/trunk/mcs/; revision=124463
2009-01-26 07:00:46 +00:00
Geoff Norton 067bd1817a 2009-01-07 Geoff Norton <[email protected]>
* SocketTest.cs: Disable some tests on the Mac that rely on socket
        options that are unavailable.

svn path=/trunk/mcs/; revision=122625
2009-01-07 07:04:44 +00:00
Gonzalo Paniagua Javier 8a9f05d723 fix the build
svn path=/trunk/mcs/; revision=118736
2008-11-13 17:24:00 +00:00
Gonzalo Paniagua Javier 0b00587d8a 2008-11-12 Gonzalo Paniagua Javier <[email protected]>
* SocketTest.cs: added test case based on the one in bug
	#443346.


svn path=/trunk/mcs/; revision=118697
2008-11-13 03:48:52 +00:00
Dick Porter d99d4af2ff 2008-06-19 Dick Porter <[email protected]>
* Socket.cs: Implement generic Send() and Receive() methods.
	Fixes bug 395168.

2008-06-19  Dick Porter  <[email protected]>

	* SocketTest.cs: Tests for generic Send() and Receive() methods.



svn path=/trunk/mcs/; revision=106198
2008-06-19 11:50:42 +00:00
Zoltan Varga 151117371d 2007-11-02 Zoltan Varga <[email protected]>
* SocketTest.cs: Disable the send/receive buffer size tests.

svn path=/trunk/mcs/; revision=88728
2007-11-02 16:25:00 +00:00
Robert Jordan 30ca8e180b In System.Net.Sockets:
2007-10-21  Robert Jordan  <[email protected]>

	* Socket.cs: Remove GetHashCode override from the NET_2_0
	profile. Add LAMESPEC comment. Fixes bug #325113.

In Test/System.Net.Sockets:
2007-10-21  Robert Jordan  <[email protected]>

	* SocketTest.cs: Enable GetHashCodeTest.


svn path=/trunk/mcs/; revision=87865
2007-10-21 11:59:00 +00:00
Gert Driesen c457862b7d * SocketTest.cs: Improved EndConnect test. Added test for bug #82446,
and marked it NotWorking for 2.0 profile.

svn path=/trunk/mcs/; revision=84155
2007-08-15 15:52:09 +00:00
Dick Porter 64e7cb9b84 2007-05-14 Dick Porter <[email protected]>
* SocketTest.cs: Tests for bug 75705



svn path=/trunk/mcs/; revision=77362
2007-05-14 15:22:31 +00:00
Dick Porter 75ed1e07ec 2007-01-26 Dick Porter <[email protected]>
* Socket.cs: There's no point checking the SO_ERROR status of a
	socket after poll() or select() if we already know that connected
	== true.

2007-01-26  Dick Porter  <[email protected]>

	* SocketTest.cs: New test for SO_ERROR reading, returning the same
	value over and over.



svn path=/trunk/mcs/; revision=71751
2007-01-26 14:27:47 +00:00
Miguel de Icaza 0c11e8adb9 Make this work with some linux kernels
svn path=/trunk/mcs/; revision=71378
2007-01-20 03:31:29 +00:00
Dick Porter cbb74edc89 2007-01-11 Dick Porter <[email protected]>
* SocketTest.cs: 
	* UdpClientTest.cs: Test 2.0 additions



svn path=/trunk/mcs/; revision=70854
2007-01-11 13:31:42 +00:00
Dick Porter f4a529ee38 2006-11-24 Dick Porter <[email protected]>
* SocketTest.cs: Add a test for async non blocking connects that
        should fail, leaving Socket.Connected == false.  Based on test
        case in bug 79878.



svn path=/trunk/mcs/; revision=68433
2006-11-24 15:49:43 +00:00
Andrew Skiba d0ac2b8307 exclude stuff for TARGET_JVM
svn path=/trunk/mcs/; revision=67937
2006-11-15 16:27:54 +00:00
Gonzalo Paniagua Javier 41a8bb1168 2005-09-27 Gonzalo Paniagua Javier <[email protected]>
* SocketTest.cs: added a bunch of tests expecting
	ObjectDisposedException to be thrown.


svn path=/trunk/mcs/; revision=50889
2005-09-27 21:08:14 +00:00
Gonzalo Paniagua Javier fd02ac62fa 2005-06-20 Gonzalo Paniagua Javier <[email protected]>
* SocketTest.cs: added new test for Select.


svn path=/trunk/mcs/; revision=46235
2005-06-20 08:27:12 +00:00
Gert Driesen ce2cd9cf8b * SocketTest.cs: added test for bug #75158.
svn path=/trunk/mcs/; revision=45420
2005-06-04 21:26:32 +00:00
Gonzalo Paniagua Javier 7ad9468745 enable test as 75154 is fixed now
svn path=/trunk/mcs/; revision=45410
2005-06-04 18:09:43 +00:00
Gert Driesen 95a2deb1e0 * SocketTest.cs: use IPAddress.Loopback in IPEndPoint to allow
AcceptBlockingStatus test to pass on both Mono and MS.NET.

svn path=/trunk/mcs/; revision=45400
2005-06-04 13:00:56 +00:00
Gert Driesen 1720341c61 * SocketTest.cs: added test for bug #75154.
svn path=/trunk/mcs/; revision=45399
2005-06-04 12:55:09 +00:00
Sebastien Pouliot 2dd68345bd 2005-05-20 Sebastien Pouliot <[email protected]>
* NetworkStreamCas.cs: New. CAS unit tests for NetworkStream.
	* SocketCas.cs: New. CAS unit tests for Socket.
	* SocketTest.cs: Make some fields public so they can be reused.
	* TcpClientCas.cs: New. CAS unit tests for TcpClient (currently 
	commented as the Begin* methods aren't yet implemented).


svn path=/trunk/mcs/; revision=44814
2005-05-20 13:10:16 +00:00
Gonzalo Paniagua Javier fcf673a586 2005-05-06 Gonzalo Paniagua Javier <[email protected]>
* SocketTest.cs: added test for setting a boolean socket option.


svn path=/trunk/mcs/; revision=44161
2005-05-06 19:25:59 +00:00
Zoltan Varga 2741eb2d5c 2005-02-01 Zoltan Varga <[email protected]>
* SocketTest.cs: Mark some tests with [Category ("InetAccess")].

svn path=/trunk/mcs/; revision=39931
2005-02-01 16:36:47 +00:00
Nick Drochak 755b9d2bdf 2005-01-08 Nick Drochak <[email protected]>
* TypeDescriptorTests.cs:
	* System.ComponentModel/ChangeLog
	* System.ComponentModel/TypeDescriptorTests.cs
	* System.Net.Sockets/ChangeLog
	* System.Net.Sockets/SocketTest.cs
	* System.Text.RegularExpressions/ChangeLog
	* System.Text.RegularExpressions/RegexTest.cs
	* System/ChangeLog
	* System/UriTest.cs
	* System/UriTest2.cs: Fix/Ignore tests for MS.NET

svn path=/trunk/mcs/; revision=38493
2005-01-07 15:42:31 +00:00
Dick Porter c67dd7f541 2004-10-14 Dick Porter <[email protected]>
* SocketTest.cs: Test the blocking status of accepted sockets

svn path=/trunk/mcs/; revision=34991
2004-10-14 13:05:44 +00:00