Commit Graph
21 Commits
Author SHA1 Message Date
Miguel de Icaza c6ab899595 [System] Fix most warnings on the System test suite 2014-09-24 10:43:46 -04:00
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
Damien Diederen 3d21e9cd2f [System.Net] Do not assume IPv6 is enabled in UdpClientTest
Without this, three of the tests fail on Linux kernels without IPv6
support.

This is a minimal fix, copy'n'pasting a conditional which was used in
other tests.  It might be nicer to factor out the SupportsIPv6 to its
own utility function.
2014-06-20 18:45:35 +02:00
Alexis Christoforides 73ba8a9535 [System.Net] Fixed intermittent test failures from undisposed UdpClients 2014-04-10 15:56:48 -04:00
Sebastien Pouliot eeff03c59c Reduce/remove the probability of having test failures wrt UdpClient.Available 2013-09-11 21:00:04 -04:00
Sebastien Pouliot 313cb0f6be Do not assume AddressList[0] has the address the test wants, that's not always the case, and not what UdpClient should be testing 2013-06-20 15:46:55 -04:00
Martin Baulig 7fd71833d3 Fix UdpClientTest.CloseInReceive() on Mac OS.
On my Mac, somethig is already listening on port 50000; use
a random one instead.
2012-06-30 06:40:54 +02:00
Martin Baulig b6b41065cb Fix #5504: UdpClient.JoinMulticastGroup().
* configure.in: Check for if_nametoindex().

* socket-io.c (ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal):
  Mac OS doesn't allow interface = 0; use the interface id from the first
  non-loopback interface.

* UdpClientTest.cs: Enable JoinMulticastGroup1_IPv6,
  JoinMulticastGroup2_IPv6 and JoinMulticastGroup3_IPv6 on the Mac.
2012-06-28 19:47:43 +02:00
Martin Baulig 504e2341ba Implement Dns.GetHostEntry(string.Empty) on Mac OS.
* configure.in: Add check for getifaddrs().

* socket-io.c: Implement get_local_ips() using getifaddrs()
  if SIOCGIFCONF is not available.

* DnsTest.cs: Add GetHostEmpty_StringEmpty().

* UdpClientTest.cs(): Enable Available(), BeginReceive() and BeginSend()
  on the Mac.
2012-06-27 04:20:04 +02:00
Martin Baulig f4d96d2fff Fix UdpClientTest.UdpClientBroadcastTest().
You must not use Send() with an endpoint after using either the
hostname constructor or calling Connect(); see the MSDN docs.
2012-06-27 02:26:07 +02:00
Martin Baulig cad82120b6 Fix UdpClientTest.Constructor6(): UDP port 0 seems to be invalid. 2012-06-27 02:10:00 +02:00
Martin Baulig 5d6a94128e UdpClientTest.Constructor5 now works on the Mac. 2012-06-26 21:52:45 +02:00
Vinicius Jarina 7c32f15193 Removed broken tests from System 2012-06-04 09:12:20 -03: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
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
Gonzalo Paniagua Javier ee9a2c680c 2008-12-03 Gonzalo Paniagua Javier <[email protected]>
* UdpClientTest.cs: test closing a UDP socket while receiving.


svn path=/trunk/mcs/; revision=120603
2008-12-03 15:34:37 +00:00
Gert Driesen e99f202f1f * UdpClientTest.cs: Fixed line endings.
svn path=/trunk/mcs/; revision=90184
2007-11-22 19:13:19 +00:00
Dick Porter e3c85ecc7b 2007-10-30 Dick Porter <[email protected]>
* UdpClient.cs: Don't set the multicast option twice.  Fixes bug
	324033.

2007-10-30  Dick Porter  <[email protected]>

	* UdpClientTest.cs: Test for 324033.



svn path=/trunk/mcs/; revision=88456
2007-10-30 13:55:11 +00:00
Ilya Kharmatsky 9461572c1f Added 'Ignore' attribute under TARGET_JVM directive.
svn path=/trunk/mcs/; revision=71661
2007-01-25 11:26:04 +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 fbca4fb542 2005-02-23 Dick Porter <[email protected]>
* UdpClientTest.cs: Added, with UdpClientBroadcastTest from
        Chris Bacon <[email protected]>



svn path=/trunk/mcs/; revision=41100
2005-02-23 16:20:36 +00:00