65 Commits
Author SHA1 Message Date
Alex Earl 2c4859839e Fix #11779
This adds any base interfaces to the remoting TypeInfo to match the
behavior of MS.NET
2018-11-27 09:05:51 +01:00
Alexander Köplinger e7a2d94f75 [bcl] Fix a few hardcoded socket ports in tests (#5471)
* [System] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

* [System.Runtime.Remoting] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

Additionally remove a copy of RemotingServicesTest.cs from corlib
which also exists in System.Runtime.Remoting in updated form.

* [System.ServiceModel] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

* [System.Net.Http] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.

The additional "keep-alive" header in Send_Complete_NoContent() and
Send_Transfer_Encoding_Chunked() is because we were using the same
port for all tests before so other tests would clear the header.
This doesn't happen now that we use distinct test ports.

* [System.ServiceModel.Web] Fix a few hardcoded socket ports in tests

Those could've shown up as "address already in use" in CI.
2017-08-31 10:53:35 +02:00
Ludovic Henry e58e0fcf57 Reenable MonoTests.Remoting.IpcChannelTest.Bug609381 (#5245)
Fixes bug https://bugzilla.xamarin.com/show_bug.cgi?id=36634
2017-07-20 16:08:26 -04:00
Marek Safar 44b95d3d02 [System.Runtime.Remoting] Disable test accidentally re-enabled by nunitlite switch 2016-11-22 18:13:14 +01:00
Alexander Köplinger 40c3407ab9 [System.Runtime.Remoting] Fix double call to ChannelServices.UnregisterChannel
It is already called in TestFixtureTearDown, and calling it twice results in an exception in UnregisterChannel
the second time because the channel is no longer registered.
2016-10-29 14:09:37 +02:00
Marcos Henrich 5913682513 [bcl] Replace deprecated usage of Assertion class and Is.InstanceOfType usages.
nunitlite does not contain Assertion class.

nunitlite does not implement Is.InstanceOfType, replaced usages of:
Assert.That (type, Is.InstanceOfType(typeof(T))) with Assert.IsInstanceOfType.
2016-10-29 14:09:34 +02:00
Marcos Henrich 863dc73d19 [bcl] Add NUnitHelper.cs with API not in nunit-lite
NUnitHelper.cs adds CollectionAssert, FileAssert, StringAssert.

Also adds AssertHelper class with methods that are not part of nunitlite
Assert class.
2016-10-29 14:09:33 +02:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
Alexander Köplinger 21e8b26731 [System.Runtime.Remoting] Disable a test that hangs on Linux for now
I talked with Ludovic about this and we're going to disable the test until we figure out what happens.
2015-12-04 15:43:21 -05:00
Alexander Köplinger 832f63035f [System.Runtime.Remoting] Use NotWorking category for test instead of Ignore attribute
The TestFixtureSetUp would sometimes fail in CI, but none of the tests in this class are
actually run since they are all either [Category("NotWorking")] or [Ignore].

Moving the one test from Ignore to NotWorking category allows NUnit to recognize there
are no tests to run and skips the unnecessary TestFixtureSetUp completely.
2015-07-31 21:06:05 +02:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Robert Jordan 0617642a95 [Fix] Handle the portName argument/property properly.
Some of IpcServerChannel's ctors did not keep track of the original
IPC port name correctly. This led to a non-functional GetUrlsForUri
method.
2010-08-12 00:53:27 +08:00
Raja R Harinath cd51491631 Fix a few cases of mixed line-endings
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller.  I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
2010-07-26 02:20:13 +05:30
Raja R Harinath b293948fb7 EOL handling
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.

With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
2010-07-25 20:17:39 +05:30
Robert Jordan c865cdf96d In Test:
2010-05-29  Robert Jordan  <[email protected]>

	* IpcChannelTest.cs: Add test for bug #609381.

In System.Runtime.Remoting.Channels.Ipc.Win32:
2010-05-29  Robert Jordan  <[email protected]>

	* IpcChannelHelper.cs (copy): Take into account that the remoting
	stack is internally using MemoryStreams all over the place.
	Fixes bug #609381 as a side effect.

	* IpcChannel.cs (.ctor): Create an IpcClientChannel as well.


svn path=/trunk/mcs/; revision=158161
2010-05-29 16:37:13 +00:00
Robert Jordan f2062c1ef9 In corlib/System.Runtime.Remoting.Proxies:
2010-02-28  Robert Jordan  <[email protected]>

	* RealProxy.cs (PrivateInvoke): BeginInvoke return messages
	do not have out args (by design). The issue has existed for many
	years but it was invisible because mono_delegate_begin_invoke ()
	has swallowed exceptions, which was fixed by Gonzalo in r141856.
	Fixes a couple of disabled remoting tests (#576618).

In System.Runtime.Remoting/Test:
2010-02-28  Robert Jordan  <[email protected]>

	* BaseCalls.cs: Enable tests again. See bug #576618.


svn path=/trunk/mcs/; revision=152616
2010-02-27 23:18:52 +00:00
Jonathan Pobst 5b5a2c4994 2010-02-11 Jonathan Pobst <[email protected]>
* ActivationTests.cs: Disable TestCreateHttpWkoSingleCall and
	TestCreateHttpWkoSingleton due to sporadic failures.
	Filed as bug #579277.

svn path=/trunk/mcs/; revision=151549
2010-02-11 20:25:36 +00:00
Jonathan Pobst 50044dfc5e 2010-02-03 Jonathan Pobst <[email protected]>
* HttpCalls.cs: Disable all tests here due to excessive
	sporadic failures.  Filed as bug #576724.

svn path=/trunk/mcs/; revision=150788
2010-02-03 21:16:00 +00:00
Jonathan Pobst 94091b8c6f 2010-02-03 Jonathan Pobst <[email protected]>
* BaseCalls.cs: Mark tests as NotWorking.  Reported as bug #576618.

svn path=/trunk/mcs/; revision=150775
2010-02-03 17:49:08 +00:00
Gonzalo Paniagua Javier bd709d64b7 add timeout here too
svn path=/trunk/mcs/; revision=142005
2009-09-16 01:36:39 +00:00
Gonzalo Paniagua Javier 8d6883358e 2009-09-12 Gonzalo Paniagua Javier <[email protected]>
* HttpServerChannelTests.cs:
	* BaseCalls.cs:
	* System.Runtime.Remoting.Channels.Tcp/TcpChannelTest.cs: ignore tests
	that fail on MS.NET.


svn path=/trunk/mcs/; revision=141862
2009-09-13 03:15:56 +00:00
Robert Jordan 8e4d16bf5f 2009-05-24 Robert Jordan <[email protected]>
* GenericTest.cs: differentiate between "Test(int)" and
	"Test<int>(int)" to prove that the correct method is invoked.

svn path=/trunk/mcs/; revision=134649
2009-05-24 14:06:26 +00:00
Robert Jordan b6df9d8ee1 2009-05-24 Robert Jordan <[email protected]>
* GenericTest.cs (TestCrossAppDomainChannel): disable on MS.NET as
	some generic calls do not seem to be supported anymore. It looks
	like a bug, though, since the same tests are passing when performed
	over the TCP channel.

svn path=/trunk/mcs/; revision=134648
2009-05-24 13:47:34 +00:00
Robert Jordan 86da8ea29d 2009-05-24 Robert Jordan <[email protected]>
* GenericTest.cs (TestTcpChannel): create a unique channel and
	unregister it upon termination. Fixes issues that were uncovered
	by the NUnit upgrade (see Atsushi's changelogs below).


svn path=/trunk/mcs/; revision=134646
2009-05-24 12:46:29 +00:00
Atsushi Eno 865348e6c0 2009-01-07 Atsushi Enomoto <[email protected]>
* RemotingServicesTest.cs : mark failing test as NotWorking, and 
	  Ignore the blocker for other tests.
	  Remoting tests are finally back!


svn path=/trunk/mcs/; revision=122612
2009-01-07 06:03:38 +00:00
Atsushi Eno e2d9a3100f 2009-01-07 Atsushi Enomoto <[email protected]>
* BaseCalls.cs : fully name is sometimes rejected ... ?


svn path=/trunk/mcs/; revision=122611
2009-01-07 06:02:23 +00:00
Atsushi Eno 3ccf089eb7 2009-01-07 Atsushi Enomoto <[email protected]>
* GenericTest.cs : change from NotWorking to Ignore which also fails
	  and blocks further tests under .NET.


svn path=/trunk/mcs/; revision=122610
2009-01-07 05:39:37 +00:00
Atsushi Eno 31e3350fd4 2009-01-07 Atsushi Enomoto <[email protected]>
* HttpBugTests.cs : mark some tests as [Ignore] as they are blocker
	  to other http tests. Make sure to unregister HTTP channel.


svn path=/trunk/mcs/; revision=122609
2009-01-07 05:28:55 +00:00
Atsushi Eno 73025446bc 2009-01-07 Atsushi Enomoto <[email protected]>
* GenericTest.cs, HttpServerChannelTests.cs, ActivationTests.cs,
	  BaseCalls.cs, CrossDomainCalls.cs, HttpBugTests.cs,
	  ContextsTest.cs : explicitly set applicationBasePath to load
	  the test assembly itself. It reduces hundreds of test failures
	  under .NET and upgraded NUnit.
	  Marked some tests as NotWorking (due to nunit upgrade).


svn path=/trunk/mcs/; revision=122606
2009-01-07 03:46:50 +00:00
Michael Hutchinson 62eacba3e2 2008-09-24 Michael Hutchinson <[email protected]>
* HttpServerChannelTests.cs: Don't check for a chunked response from 
	  the Mono HTTP server; it no longer chunks since that was breaking 
	  other tests.


svn path=/trunk/mcs/; revision=114001
2008-09-24 19:32:52 +00:00
Michael Hutchinson d997190fc1 svn path=/trunk/mcs/; revision=113894 2008-09-23 20:57:12 +00:00
Jeffrey Stedfast 545996df9c 2008-09-19 Jeffrey Stedfast <[email protected]>
* HttpServerChannelTests.cs: More unit tests for
	HttpServerChannel.


svn path=/trunk/mcs/; revision=113594
2008-09-19 22:18:21 +00:00
Jeffrey Stedfast 91a48dd5e2 2008-09-17 Jeffrey Stedfast <[email protected]>
* TcpChannelTest.cs: Changed the namespace to MonoTests.Remoting
	like the other Remoting tests and added a client<->server
	communication test. Throw in a ftp:// url for the url-parsing test
	to make sure the parser returns null on that.


svn path=/trunk/mcs/; revision=113358
2008-09-17 22:00:37 +00:00
Jeffrey Stedfast b056688ea7 2008-09-17 Jeffrey Stedfast <[email protected]>
* BaseCalls.cs (RemoteObject): Added more methods for invoking.


svn path=/trunk/mcs/; revision=113357
2008-09-17 22:00:14 +00:00
Jeffrey Stedfast f54fd3ae5b 2008-09-12 Jeffrey Stedfast <[email protected]>
Fix for bug #320298

	* TcpClientTransportSink.cs: Updated for change to
	TcpChannel.ParseTcpURL(). We now need to do our own integer
	conversion/validation of the port.

	* TcpChannel.cs (ParseTcpURL): We need to match the
	protocol ("tcp") case-insensitively. The objectURI is supposed to
	include the leading '/' character. Also, we need to ignore invalid
	port designators since Microsoft's .NET implementation of
	TcpChannel.Parse() doesn't seem to care that they are valid.


svn path=/trunk/mcs/; revision=112912
2008-09-12 22:10:44 +00:00
Gert Driesen 2d9ffcb60d * ActivationTests.cs: Only stop server if it was actually created.
* RemotingServicesTest.cs: Always/only unregister channels if they were
actually created. More code formatting.

svn path=/trunk/mcs/; revision=93959
2008-01-25 20:41:57 +00:00
Gert Driesen 5b45f4fecc * System.Runtime.Remoting_test.dll.sources: add TcpChannelTest.cs.
* RemotingServicesTest.cs: Do not hide exception that occur when
unregistering a channel. Code formatting and removed extra tabs.
* TcpChannelTest.cs: Added simple ctor test that covers bug #355905.
* System.Runtime.Remoting_test.dll.sources: add TcpChannelTest.cs.

svn path=/trunk/mcs/; revision=93956
2008-01-25 20:22:12 +00:00
Robert Jordan 5b80f582a1 2007-10-30 Robert Jordan <[email protected]>
* GenericTest.cs: Add tests for bug #324232.


svn path=/trunk/mcs/; revision=88435
2007-10-30 01:49:53 +00:00
Robert Jordan 6a84a0d32e 2007-09-09 Robert Jordan <[email protected]>
* GenericTest.cs: Add tests for bug #78882, #81554.


svn path=/trunk/mcs/; revision=85527
2007-09-08 23:16:34 +00:00
Robert Jordan badacb3580 2007-06-05 Robert Jordan <[email protected]>
* RemotingServicesTest.cs: Add test for bug #81811.


svn path=/trunk/mcs/; revision=78668
2007-06-05 19:42:23 +00:00
Robert Jordan 6bb31841e3 In Test:
2007-05-19  Robert Jordan  <[email protected]>

	* IpcChannelTest.cs: Add test for bug #81653.

In .:
2007-05-19  Robert Jordan  <[email protected]>

	* System.Runtime.Remoting_test.dll.sources: add IpcChannelTest.cs

	* Add System.Runtime.Remoting.vmwcsproj and System.Runtime.Remoting.sln
	* AssemblyInfo.cs: only TARGET_JVM changes

svn path=/trunk/mcs/; revision=77699
2007-05-19 21:48:28 +00:00
Robert Jordan d0875a67b3 2007-02-05 Robert Jordan <[email protected]>
* BaseCalls.cs (PrimitiveParams): Add dummy overload method for
	bug #77191.
	* ReflectionCalls.cs (PrimitiveParams): Due to the change above
	we need to specify the exact signature because PrimitiveParams ()
	is overloaded now.


svn path=/trunk/mcs/; revision=76842
2007-05-07 15:43:02 +00:00
Robert Jordan 51e2750e61 2007-01-09 Robert Jordan <[email protected]>
* GenericTest.cs: Added test for generics in remoting interfaces.
	See bug #80383.


svn path=/trunk/mcs/; revision=70684
2007-01-09 00:18:28 +00:00
Lluis Sanchez 8d2f1c11b6 2006-12-18 Lluis Sanchez Gual <[email protected]>
* BaseCalls.cs: Added some tests for exceptions.


svn path=/trunk/mcs/; revision=70644
2007-01-08 12:50:40 +00:00
Robert Jordan 8b93513b0b 2005-12-02 Robert Jordan <[email protected]>
* RemotingServicesTest.cs: Added test for bug #76809.


svn path=/trunk/mcs/; revision=54011
2005-12-06 23:39:20 +00:00
Robert Jordan bdca2c5fe1 2005-12-01 Robert Jordan <[email protected]>
* IpcCalls.cs: Made the IPC channel names unique to match the
	Tcp/HttpChannel(0) semantics, because the test suite
	relies on that.


svn path=/trunk/mcs/; revision=53788
2005-12-01 19:41:37 +00:00
Robert Jordan 736e4bc905 2005-10-16 Robert Jordan <[email protected]>
* IpcCalls.cs: Added.


svn path=/trunk/mcs/; revision=51948
2005-10-19 21:55:09 +00:00
Lluis Sanchez 1717c2d9f8 2005-04-27 Lluis Sanchez Gual <[email protected]>
* RemotingServicesTest.cs: Fix warning.
	* ContextsTest.cs: Removed unneeded exception catch.
	Changed the order in which GetEnvoySink is called. I think 
	this is a safe chenge, since it is not defined where the
	call to GetEnvoySink should be made.


svn path=/trunk/mcs/; revision=43648
2005-04-27 11:17:57 +00:00
Lluis Sanchez 4b0cc69ebc 2005-02-16 Lluis Sanchez Gual <[email protected]>
* HttpCalls.cs, TcpCalls.cs: Don't use a hardcoded port number for the
	test channels, take any free port.


svn path=/trunk/mcs/; revision=40774
2005-02-16 21:03:51 +00:00
Lluis Sanchez f59b38af9f 2004-12-17 Lluis Sanchez Gual <[email protected]>
* HttpCalls.cs: Use a different port.


svn path=/trunk/mcs/; revision=37879
2004-12-17 12:41:23 +00:00