Commit Graph
51 Commits
Author SHA1 Message Date
Sebastien Pouliot 0328ff83e6 In Test/System.Net.Sockets:
2009-09-26  Sebastien Pouliot  <[email protected]>

	* SocketAsyncEventArgsTest.cs: New. Unit tests

In System.Net.Sockets:
2009-09-26  Sebastien Pouliot  <[email protected]>

	* SocketAsyncEventArgs.cs: Fix paramater validations and default 
	values

In .:
2009-09-26  Sebastien Pouliot  <[email protected]>

	* System_test.dll.sources: Add unit tests for SocketAsyncEventArgs


svn path=/trunk/mcs/; revision=142675
2009-09-26 15:27:35 +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 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
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 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
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
Gert Driesen e99f202f1f * UdpClientTest.cs: Fixed line endings.
svn path=/trunk/mcs/; revision=90184
2007-11-22 19:13:19 +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
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
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
Gert Driesen 13b7e81515 * SocketResponder.cs: Thread-safety fixes.
* TcpClientTest.cs: Enabled test for bug #81105.

svn path=/trunk/mcs/; revision=76068
2007-04-22 16:19:52 +00:00
Gert Driesen 9b688e5d1e * TcpClientTest.cs: ... and disable it again, since it fails buildbot
sles-9 x86-64.

svn path=/trunk/mcs/; revision=76022
2007-04-20 19:46:01 +00:00
Gert Driesen 9dc8fb6d4d * TcpClientTest.cs: Re-enabled test for bug #81105 since it passes
on both linux and windows. I'll monitor the build bots to spot if it
breaks the tests.

svn path=/trunk/mcs/; revision=76020
2007-04-20 18:43:10 +00:00
Gert Driesen 155199945b * TcpClient.cs: Do not initialize network stream in Connect. In
Dispose, only nullify client if network stream was not obtained.
Fixes bug #81105.
* TcpClientTest.cs: Added test for bug #81105.

svn path=/trunk/mcs/; revision=74062
2007-03-11 13:02:52 +00:00
Vladimir Krasnov 4a1093a70a * removed tests with not supported calls for TARGET_JVM because of validation failures
svn path=/trunk/mcs/; revision=73886
2007-03-07 13:45:42 +00:00
Ilya Kharmatsky 8002cee3a2 Ignoring non working tests, eol fix in SocketTest.jvm.cs
svn path=/trunk/mcs/; revision=72470
2007-02-08 12:50:36 +00:00
Ilya Kharmatsky e7a54460e9 Added SocketTest.jvm.cs - as a fork of SocketTest.cs, due to a big number of 'TARGET_JVM' specific changes.
svn path=/trunk/mcs/; revision=72028
2007-01-31 15:07:34 +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
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 164ee390b7 2007-01-24 Dick Porter <[email protected]>
* NetworkStream.cs: 2.0 profile updates, based on a patch by
	Sridhar Kulkarni ([email protected])

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

	* NetworkStreamTest.cs: Test 2.0 ReadTimeout property



svn path=/trunk/mcs/; revision=71598
2007-01-24 15:26:47 +00:00
Dick Porter 9dfddd1985 2007-01-23 Dick Porter <[email protected]>
* TcpListener.cs: 2.0 profile updates, based on a patch by Sridhar
	Kulkarni ([email protected])

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

	* TcpListenerTest.cs: Test 2.0 Start(int) overload



svn path=/trunk/mcs/; revision=71565
2007-01-23 21:40:58 +00:00
Dick Porter f75e3a4aac 2007-01-23 Dick Porter <[email protected]>
* TcpClient.cs: 2.0 profile updates, based on a patch by Sridhar
	Kulkarni ([email protected])

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

	* TcpClientTest.cs: Test 2.0 Connect(IPAddress[], port) overload



svn path=/trunk/mcs/; revision=71557
2007-01-23 21:08:28 +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
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
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
Gert Driesen 4c3bd8e7c3 * TcpListenerTest.cs: removed NotDotNet category from TcpListener test as its
working just fine on both MS.NET 1.x and 2.0.

svn path=/trunk/mcs/; revision=45398
2005-06-04 12:03:55 +00:00
Gonzalo Paniagua Javier d3b9890938 2005-06-03 Gonzalo Paniagua Javier <[email protected]>
* TcpListenerTest.cs: actually connect the socket to the listener. Fixes
	the test.


svn path=/trunk/mcs/; revision=45367
2005-06-03 12:03:45 +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
Nick Drochak f44d1cb31a 2005-03-06 Nick Drochak <[email protected]>
* TcpClientTest.cs: Choose a different port so test will pass on MS.NET
	* TcpListenerTest.cs: Ignore test that doesn't play well on MS.NET

svn path=/trunk/mcs/; revision=41482
2005-03-06 13:47:13 +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
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
Gonzalo Paniagua Javier 1f19ce5b39 2004-06-05 Gonzalo Paniagua Javier <[email protected]>
* SocketTest.cs: added test for Select with empty lists. Changed the
	'bogus' address of EndConnect test.

svn path=/trunk/mcs/; revision=28875
2004-06-05 15:55:37 +00:00
Gonzalo Paniagua Javier c5cd9cb597 2003-12-30 Gonzalo Paniagua Javier <[email protected]>
* System_test.dll.sources: added SocketTest.cs

	* System.Net.Sockets/Socket.cs: fix for several asynchronous methods to
	delay exception throwing.

	* Test/System.Net.Sockets/SocketTest.cs: new test for asynchronous
	connection failure.

	Test+fix by Brad FitzpatrickBrad Fitzpatrick <[email protected]>.

svn path=/trunk/mcs/; revision=21562
2003-12-31 13:18:45 +00:00
Gonzalo Paniagua Javier ebf9fc74a4 2003-08-24 Gonzalo Paniagua Javier <[email protected]>
* TcpListenerTest.cs: added more tests.

svn path=/trunk/mcs/; revision=17549
2003-08-24 16:13:43 +00:00
Peter Williams accc28dd64 2003-07-16 Peter Williams <[email protected]>
A whole passel of build system changes. Doc updates:

	* build/README.makefiles: Doc updates.

	* build/profiles/net_1_0.make: Doc changes.

	* INSTALL.txt: A few more touchups.

	Better defaults:

	* build/config-default.make (prefix): Default install prefix
	should be /usr/local.

	* build/profiles/bootstrap.make: This profile ...

	* build/profiles/default.make: ... is now the default.

	* build/profiles/atomic.make: And the default is now this.

	Fixes for pre-build checks:

	* Makefile: Do the platform and (new) profile checks
	before the build, which took some infrastructure changes.

	* build/rules.make: Allow a Makefile to specify its own all/install/etc
	targets.

	* build/profiles/default.make (profile-check): Add a blank
	target here.

	* build/profiles/atomic.make: Check for a full MCS install to
	build against.

	HP/UX fixes with help from Bernie Solomon:

	* build/config-default.make (ECHO_ESCAPE): HP/UX 'echo'
        doesn't need a -e parameter to interpret escape codes. Test for
        that and define a configuration parameter.

        * build/library.make ($(makefrag)): Use $(ECHO_ESCAPE)
        instead of assuming that 'echo -e' will interpret escape
        codes.

        * build/executable.make ($(makefrag)): Here too.

	A make distcheck fix:

	* Makefile: Inherit the current prefix so that the build can
	find the right System.Xml.dll.

	And Windows build fixes with the invaluable help of Sebastian
	Pouliot (in various subdirectories).

class/Mono.Data.SqliteClient:

2003-07-16  Peter Williams  <[email protected]>

	* Makefile (LIB_MCS_FLAGS): Add /r:System.dll here. Why wasn't
	this necessary with MCS? (csc.exe needs it.)

class/System:

2003-07-16  Peter Williams  <[email protected]>

	* Makefile (SCARY_LIB): Flip around since what was bootstrap
	is now default.

class/System/Test/System.Net:

2003-07-16  Peter Williams  <[email protected]>

	* IPAddressTest.cs: #if NET_1_1 for some IPv6 tests that
	rely on some NET_1_1-only features.

class/System/Test/System.Net.Sockets:

2003-07-16  Peter Williams  <[email protected]>

	* TcpListenerTest.cs: Initialize outSock to null to
	prevent an mcs compile error.

class/System.Data:

2003-07-16  Peter Williams  <[email protected]>

	* Makefile: Flip around for the new default build
	profile. (In a separate commit)

class/System.Windows.Forms:

2003-07-16  Peter Williams  <[email protected]>

	* System.Windows.Forms.dll.sources: Don't build with two
	AssemblyInfo.cs files.

class/corlib:

2003-07-16  Peter Williams  <[email protected]>

	* Makefile ($(test_makefrag)): Use $(ECHO_ESCAPE) for HP/UX
	portability fixes.
	(all-local): Don't build $(cmplib) by default, it's not something
	most people need, and the build is broken on Windows right now anyway.

ilasm:

2003-07-16  Peter Williams  <[email protected]>

	* Makefile (ILParser.cs): Move this from parser/ so we avoid
	slash direction issues on the Windows build.

	* .cvsignore: Add ILParser.cs here.

ilasm/parser:

2003-07-16  Peter Williams  <[email protected]>

	* .cvsignore: ILParser.cs has been moved.

tools:

2003-07-16  Peter Williams  <[email protected]>

	* Makefile (DIST_ONLY_SUBDIRS): Don't build SqlSharp, it's
	very old and doesn't build on Windows.

svn path=/trunk/mcs/; revision=16292
2003-07-16 05:08:19 +00:00
Jerome Laban 93d06a0faa 2003-07-14 Jerome Laban <[email protected]>
* TcpListenerTest.cs: Forced IPv4 listener test.

svn path=/trunk/mcs/; revision=16219
2003-07-14 16:04:58 +00:00
Phillip Pearson e599345a87 * AllTests.cs: Fixed Lawrence's e-mail address.
svn path=/trunk/mcs/; revision=8752
2002-11-02 12:31:16 +00:00