22 Commits
Author SHA1 Message Date
Alexander Köplinger 77cf4cc4f8 [tests] Remove MONOMAC ifdef from BCL tests (#13694)
It was set by xamarin-macios when they were still taking the raw .cs source files
but since we switched to prebuilt binaries we need to replace it with
some define we're actually setting in Mono.

Most cases can be replaced by just XAMMAC_4_5 since MOBILE is defined on the xammac profile.
2019-03-27 20:21:48 +01:00
Chris Hamons bb0564ff3c Mono BCL test fixes so XM can run them (#4210) 2017-01-10 16:59:08 -06:00
Marcos Henrich 631d5dd49f [System.Web.Services] Test Header sharing issue.
Covers #41564

When multiple methods shared soap header a duplicate key exception would
be thrown.

This issue only occurs on XAMMAC and MOBILE where the non reference
source serializer is still used.
2016-06-30 17:56:16 +01: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
Ludovic Henry 83c7edc70e [SocketResponder] Start in constructor and Stop on Dispose
In conjuction with `using` we ensure that we Start and Stop the SocketResponder correctly, and everytime
2016-01-28 11:10:53 +00:00
Ludovic Henry 7f0b7cf022 [Tests] Use explicit delegate so it appears in stacktraces
In case of exception in this callback, the name of the test method will appear in the stacktrace, making debugging way easier.
2016-01-28 11:10:53 +00:00
Alex Rønne Petersen ceff52c9ae [bcl] Deduplicate the SocketResponder test helper class.
A number of fixes were made to the version in System but these fixes were never
applied to the System.Web.Services version. Merge the two and place the class
in the test-helpers directory to avoid this sort of maintenance problem.
2016-01-14 03:32:23 +01:00
Alex Rønne Petersen 902f758f91 Revert "[bcl] Fix System.Net.HttpWebRequestTest.GetRequestStream hang"
This reverts commit b3fa096e5e.

The Abort () call is problematic on many platforms and is no longer necessary
as we properly close the listening socket since 1103abf383.

Conflicts:

	mcs/class/System.Web.Services/Test/System.Web.Services.Protocols/SocketResponder.cs
	mcs/class/System/Test/System.Net/SocketResponder.cs
2016-01-13 05:42:45 +01:00
Rolf Bjarne Kvinge f1b7be2f57 Remove Thread.[Abort|Suspend|Resume] from TvOS/WatchOS.
In tests replace usages of Thread.Abort with Thread.Interrupt when it looks
like it can work, otherwise just disable the complete test.
2015-11-19 12:54:36 +01:00
Ludovic Henry b3fa096e5e [bcl] Fix System.Net.HttpWebRequestTest.GetRequestStream hang
This hang would manifest when running the System test suite, with a thread waiting on a `recv'. This syscall would never be interrupted because the socket it would listen on would never close, as there would still be references to its SafeSocketHandle, so that it would never release the native handle.

The issue came from the fact that, when closing the SocketResponder (via the Dispose and the using), the listening thread would never be aborted/stopped, and it would consequently never be collected, thus never releasing the current socket on which _requestHandler is called, thus never aborting the above `recv' syscall.

The issue would arise with the cooperative GC as well as the premptive one.
2015-09-17 16:09:25 +01:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Marek Safar a4915d561e Update mobile tests 2013-03-07 16:34:24 +01:00
Atsushi Eno 8baf35f5a3 2007-10-03 Atsushi Enomoto <[email protected]>
* SoapHttpClientProtocolTest.cs: actually those tests fails on mono
	  on Windows, so mark them as Ignore (not only in 2.0).


svn path=/trunk/mcs/; revision=86811
2007-10-03 14:24:47 +00:00
Atsushi Eno c32b72f16c 2007-10-03 Atsushi Enomoto <[email protected]>
* TypeElement.cs : disable a test that causes NRE on .NET.

	* SoapHttpClientProtocolTest.cs: disabled connection-oriented tests
	  that do not work fine on .NET 2.0.


svn path=/trunk/mcs/; revision=86802
2007-10-03 11:01:21 +00:00
Gert Driesen 1a4b80bfb4 * LogicalMethodInfoTest.cs: Fixed namespace.
* WebClientProtocolTest.cs: Fixed namespace.
* SoapHttpClientProtocolTest.cs: Fixed namespace. Added test for
bug #81886.
* SoapServerTypeTest.cs: Fixed namespace.
* SocketResponder.cs: Sync with copy in System assembly.
* Fault.cs: In SOAP 1.1, the child elements of Fault may be unqualified.
Fixed FaultReader's ReadObject_Fault to only process either unqualified
elements or elements in the SOAP 1.1 namespace, hereby fixing part of 
bug #81886 where an unqualified detail element was not processed. In 
FaultWriter, write unqualified detail element. Fixes second part of 
bug #81886.

svn path=/trunk/mcs/; revision=79855
2007-06-16 15:24:58 +00:00
Atsushi Eno be478d56c0 2007-05-11 Atsushi Enomoto <[email protected]>
* SoapServerType.cs : avoid IndexOutOfRange on reflecting 
	  SoapRpcAttribute.

	* SoapServerTypeTest.cs : make sure that SoapRpcServiceAttribute works.


svn path=/trunk/mcs/; revision=77194
2007-05-11 05:36:50 +00:00
Atsushi Eno a175ad4f30 2007-05-08 Atsushi Enomoto <[email protected]>
* SoapServerMethod.cs : Some refactoring. simply use GetMethod() in
	  type stub. WsiClaims could be retrieved from type stub.
	* SoapServerType.cs : store server methods and implement GetMethod().

	* SoapServerTypeTest.cs : added some more tests related to server
	  methods.


svn path=/trunk/mcs/; revision=76986
2007-05-09 07:21:47 +00:00
Atsushi Eno bf63451764 2007-05-08 Atsushi Enomoto <[email protected]>
* SoapServerType.cs
	  ServerType.cs
	  Methods.cs : SoapBindingUse and SoapServiceRoutingStyle could just
	  be stored in LogicalTypeInfo (as they are attributed in a web
	  service class), and removed duplicates of them in SoapTypeStubInfo.
	  Invalid attributes on a service class are checked in SoapServerType
	  .ctor().

	* SoapServerTypeTest.cs : added some .ctor() tests to verify
	  validity of attributes on the service class.


svn path=/trunk/mcs/; revision=76969
2007-05-08 19:58:38 +00:00
Atsushi Eno 4f0eb6beb2 2007-05-08 Atsushi Enomoto <[email protected]>
* LogicalMethodInfo.cs : MethodInfo is null when it is async.
	  Added internal ActualMethodInfo to represent "sync or begin" method
	  (i.e. former MethodInfo).
	* HttpGetTypeStubInfo.cs, HttpPostTypeStubInfo.cs :
	  MethodInfo -> ActualMethodInfo.

	* LogicalMethodInfoTest.cs : new test (cosmetic for now).

	* System.Web.Services.dll.sources :
	  removed SoapClientMethod.cs (not in use).
	* System.Web.Services_test.dll.sources :
	  added LogicalMethodInfoTest.cs.


svn path=/trunk/mcs/; revision=76888
2007-05-08 06:24:32 +00:00
Atsushi Eno d0448c2338 2007-04-23 Atsushi Enomoto <[email protected]>
* TypeStubManager.cs : fix binding enumeration on finding by name.
	  fix wrong ONLY_1_1.
	* ServerType.cs : ONLY_1_1 is evil enough to make sources confusing.
	  Use it only when it is really needed.

	* SoapServerTypeTest.cs : added new test (one is not working yet).
	  It will be very useful when we test service type generation.

	* System.Web.Services_test.dll.sources: added SoapServerType.cs.


svn path=/trunk/mcs/; revision=76113
2007-04-23 13:10:21 +00:00
Gert Driesen da0f3b2ced * SoapHttpClientProtocolTest.cs: Added test for bug #79988.
* SocketResponder.cs: Utility class for emulating Web Service backend.
* System.Web.Services_test.dll.sources: added SocketResponder.cs and
SoapHttpClientProtocolTest.cs.

svn path=/trunk/mcs/; revision=71044
2007-01-15 15:42:20 +00:00
Konstantin Triger 60829a9bba implemented WebClientProtocol.UseDefaultCredentials()
svn path=/trunk/mcs/; revision=64553
2006-08-30 13:51:51 +00:00