157 Commits
Author SHA1 Message Date
Alexander Köplinger 9606a8f180 [bcl] Remove usages of mono-project.com/go-mono.com/google.com in tests (#14586)
Use example.com and example.org instead.

Fixes https://github.com/mono/mono/issues/14585

Note that not all of the things I replaced make an actual network request but I thought it'd be nice to be consistent.
2019-05-23 14:12:14 +02:00
Martin Baulig 1eb9161ca6 Removing some remoting and multi-appdomain APIs on wasm and the AOT test profiles.
Build / profile changes:
------------------------

* `build/profiles/testing_aot_common.make`: define `DISABLE_REMOTING = yes` and
  `NO_MULTIPLE_APPDOMAINS = yes`.

* `mcs/class/corlib/Makefile`: check `DISABLE_REMOTING` when setting
  `REFERENCE_SOURCES_FLAGS` (and don't define `FEATURE_REMOTING`, `MONO_COM`
   and `FEATURE_COMINTEROP`).

* added new `testing_aot_common_corlib.dll.exclude.sources`.  Several types in
  the `System.Runtime.Remoting.Messaging` namespace are used by the runtime in
  non-remoting scenarios, so those need to be preserved.
  For all other remoting namespaces, we only need a few stripped down stub versions
  of the some of the types; those have been added to a new `legacy` directory, so
  we can wildcard-exclude all the files here.

* added new `testing_aot_common_corlib.dll.sources`; this currently only contains
  `legacy/*.cs` to list above mentioned stub versions.

* added new `testing_aot_common_corlib_test.dll.exclude.sources` as a common test
  excludes file.

API Changes (conditional to `DISABLE_REMOTING`):
------------------------------------------------

* `mcs/class/corlib/legacy/`: add stub-versions for some of the remoting-related
  classes that are used by the runtime (so we can't completely remove those types):

  - `System.MarshalByRefObject`.
  - `System.Runtime.Remoting.IRemotingTypeInfo`.
  - `System.Runtime.Remoting.ObjectHandle`.
  - `System.Runtime.Remoting.RemotingServices`.
  - `System.Runtime.Remoting.Activation.ActivationServices`.
  - `System.Runtime.Remoting.Contexts.Context`.
  - `System.Runtime.Remoting.Messaging.ILogicalThreadAffinative`.
  - `System.Runtime.Remoting.Messaging.LogicalCallContext`.
  - `System.Runtime.Remoting.Proxies.TransparentProxy`.
  - `System.Runtime.Remoting.Proxies.RealProxy`.

  some of these have fields that need to be preserved; these are marked with
  appropriate `#region` pragmas.

All changes below are conditional to `DISABLE_REMOTING`.

* `System.Runtime.Remoting.Messaging.AsyncResult`: this class is used by some of
  the async code, so we can't completely remove it.  However, we can remove the
  `MonoMethodMessage call_message` field when `DISABLE_REMOTING`.

* `System.Runtime.Remoting.Messaging.MonoMethodMessage`: this class is also used
  by some runtime code and thus needs to be preserved. However, when `DISABLE_REMOTING`
  is defined, then we make some changes to it:
  - remove all iterfaces (`IMethodCallMessage`, `IMethodReturnMessage`, and `IInternalMessage`).
  - `Properties` throws `PlatformNotSupportedException`.

* `System.Runtime.InteropServices.Marshal`: disable some COM-related code.

* `System.Threading.Thread`: remove `CurrentContext` property.

* `System.Threading.ExecutionContext`: adjust conditional logic; don't define
  `FEATURE_REMOTING` if `DISABLE_REMOTING`.

* `System.Activator`: add `DISABLE_REMOTING` to the existing
   `#if FEATURE_REMOTING || MOBILE_LEGACY` conditional in this class.

* `System.AppDomain`: since we only have one domain, `DefaultDomain` will always
   return the root domain; comment out the call to `RemotingServices.GetDomainProxy`
   as well as some internal methods.

* `System.__ComObject`: stub out on `DISABLE_REMOTING` as well as `!FULL_AOT_RUNTIME`.

* `System.Runtime.Serialization.Formatters.Binary.BinaryFormatter`: adjust `IFormatter`
  versus `IRemotingFormatter` interface logic to use the former when `DISABLE_REMOTING`.

* `System.Runtime.Serialization.Formatters.Binary.BinaryObjectReader`: adjust existing
  `#if FEATURE_REMOTING || MOBILE_LEGACY` conditional to add `DISABLE_REMOTING` to it.

* `System.Diagnostics.CorrelationManager`: comment out some `CallContext.LogicalGetData()`
  and `CallContext.LogicalSetData`.

* `System.Diagnostics.TraceEventCache`: likewise.

Test changes:
-------------

* `mono/tests/Makefile.am`: conditionally disable some remoting tests.

* `corlib/Test/System.Runtime.Serialization/SerializationTest.cs`: conditionally
   disable all tests requiring remoting.

* `corlib/Test/System/ActivatorTest.cs`: same; trying to preserve as much as possible
  in this test.

* added some `DISABLE_REMOTING` and `DISABLE_SECURITY` conditionals to some of the tests.
2019-05-21 12:33:55 +02:00
Martin Baulig 0e5e464cff Add a few DISABLE_SECURITY conditionals. (#14300)
* Add a few `DISABLE_SECURITY` conditionals.

* [csproj] Update project files

* Fix tests.
2019-05-10 10:17:00 +02:00
Alexander Köplinger 3d910b7477 [System.XML] Switch tests to use embedded test resources 2018-09-27 22:47:14 +02:00
Alexander Köplinger f95b3f433c [bcl] Cleanup outdated csproj/sln files (#4806)
They were either replaced by the autogenerated csproj files
or just completely broken for years.
2017-05-09 00:07:45 +02:00
Alexander Köplinger d61e7aca9a [bcl] Update tests that failed when .cs file contained CRLF
Most of them used multiline C# string literals which
means they contained the line ending character of the file.
Updated to make the tests resilient to having CRLF instead of LF.

Some of the mcs tests used a checksum to compare files,
ensured those are checked out using LF.
2017-01-28 02:25:55 +01:00
Marek Safar 27ab4a8175 [System.Xml] Disable more failing tests on old xslt implementation 2016-12-22 10:38:02 +01:00
Marek Safar 2659724dd3 [System.Xml] Disable failing tests on old xslt implementation 2016-12-22 10:31:22 +01:00
Marek Safar f3d036a124 [System.Xml] Add support for msxsl format functions. Fixes #50242 2016-12-20 14:46:17 +01:00
Marek Safar 93e845de16 [System.Xml] Enable more tests 2016-12-20 14:46:17 +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
Marek Habersack 262b4ef73f Fix endless recursion in XmlCompiledTransform on mobile
One of the XmlCompiledTransform overloads called itself recursively,
leading to either a stack overflow or segfault

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=36436
2015-12-10 22:01:52 +01:00
Alexander Köplinger 3a71f84cca [build] Fix a few Makefiles to correctly use net_4_x instead of net_4_5 2015-07-25 17:47:29 +02:00
Marek Safar 1bda13b996 [bcl] Mobile profiles fixes 2015-05-06 17:11:33 +02:00
Atsushi Eno ee9fd48289 [xml] add test from bug #2917. 2015-03-17 18:55:34 +08:00
Zoltan Varga ef380e3712 Rename Managed.Windows.Forms to System.Windows.Forms for consistency. 2015-03-03 15:59:16 -05:00
Atsushi Eno 94f667b1f3 [Xml] add mobile XslCompiledTransform implementation.
XslCompiledTransform doesn't work without CodeDom and dynamic code
generation. This "implementation" just dispatches everything to XslTransform.
2015-03-02 11:36:42 +08:00
Atsushi Eno 4990b4c47b First step to import referencesource System.Xml.
It is not simply replacement because we have to workaround dynamic codegen
for Xamarin.iOS.

Also there were several tests failing with MS implementation (e.g. for
W3C DOM conformance), so we had to disable them.

There is one regression that rather needs to be fixed in Reflection.Emit.

Also, some WCF tests fail with this implementation. They need to be
investigated, reviewed and appropriately fixed.
2015-03-02 11:36:38 +08:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Zoltan Varga 03aee949f1 Merge pull request #1200 from akoeplinger/remove-jvm
[Cleanup] Remove TARGET_JVM
2014-08-28 19:17:43 -04:00
Marcos Henrich d7f5c71baa Test xls transformation of single child node to an attribute. 2014-08-27 20:20:47 +08: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
Alexander Köplinger 5f4b8c2cf4 [Cleanup] Removed JavaEE csproj and sln files
They were once part of a special Java target profile, but this is no longer used today.
2014-08-07 23:01:53 +02:00
Damien Daspit bc802fe9ff [System.XML] Add unit test for XSL value-of bug (#18113) 2014-03-17 16:22:34 +01:00
Damien Daspit bdde4c4147 [System.XML] Add unit test for XSL note-set bug (#18114) 2014-03-17 16:04:12 +01:00
Damien Daspit c1d5e5ca14 [System.XML] Add unit test for #18118 2014-03-17 15:16:04 +01:00
Atsushi Eno 2f7631188b revive XSLT standalone tests (which was broken because of dependency on too old nunit and build profiles). 2013-10-02 23:04:44 +09:00
Sebastien Pouliot b46b038f33 Fix test case not to assume it can write in the current directory 2013-08-21 19:54:09 -04:00
Atsushi Eno b62bb260ec Fix bug #4344 - xsl:stylesheet always ignored xsl template contents. 2013-08-09 19:47:20 +09:00
Sebastien Pouliot c3b782f4ec Do not assume the unit tests can write in the application directory (e.g. iOS devices). Use the temporary directory and open files in read-only 2013-03-18 17:38:28 -04:00
Miguel de Icaza ae0feab435 Removal of NET_1_1 defines and some NET_2_0; Both defines are true these days in Mono, no versions prior to 2.0 are supported 2012-06-01 18:04:24 -04:00
Atsushi Eno c838b12b2e Remove obsolete nunit syntax from tests except for Assertion usage. 2011-04-06 20:01:27 +09:00
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
Atsushi Eno 8b5e57c908 2009-11-20 Atsushi Enomoto <[email protected]>
* DefaultContext.cs : do not use sloppy XmlConvert to parse xpath
	  number. Fixed bug #556619.

	* XslTransformTests.cs : added test for bug #556619 by
	  Tor Lillqvist.


svn path=/trunk/mcs/; revision=146613
2009-11-20 12:06:16 +00:00
Atsushi Eno b93975eaba oops, I happened to commit every pending ones and missed ChangeLog here :(
svn path=/trunk/mcs/; revision=131739
2009-04-15 08:56:38 +00:00
Atsushi Eno d54e48a2c1 2009-04-15 Atsushi Enomoto <[email protected]>
* Expression.cs : extensions could return null and it should be
	  regarded as empty node-set, not an error.


svn path=/trunk/mcs/; revision=131738
2009-04-15 08:54:10 +00:00
Atsushi Eno b505253fe7 2008-12-09 Atsushi Enomoto <[email protected]>
* XslCompiledTransform.cs : Fixed bug #450797, patch by Jonathan
	  Anderson. Preserve whitespace-only text in xsl:text.

	* XslTransformTests.cs : test for bug #450797 by Jonathan Anderson.


svn path=/trunk/mcs/; revision=121083
2008-12-09 08:20:24 +00:00
Atsushi Eno e30d02ad83 merge XPath optimization branch. About 15% faster/less memory use so
far.


svn path=/trunk/mcs/; revision=118710
2008-11-13 13:05:44 +00:00
Zoltan Varga f10ff05fc6 2008-10-08 Zoltan Varga <[email protected]>
* Makefile */Makefile build/profiles/*.make: Rename the 'default'
	profile to 'net_1_1'.

svn path=/trunk/mcs/; revision=115166
2008-10-08 05:58:51 +00:00
Atsushi Eno b4c814a17c 2008-06-04 Atsushi Enomoto <[email protected]>
* DTMXPathDocumentBuilder2.cs : fixed bug #378239.cs. Merge
	  sequential text nodes in correct way, say, whitespace entities
	  inside text should be merged (while they should be discarded around
	  CDATA).

	* XmlTextReader2.cs : added FIXME comment which won't fix, that
	  I have noticed during fixing bug #378239.

	* XslTransformTests.cs : added test for bug #378239.


svn path=/trunk/mcs/; revision=104923
2008-06-04 20:06:44 +00:00
Atsushi Eno 7ddd5fb859 2008-06-04 Atsushi Enomoto <[email protected]>
* XsltTestUtils.cs : fixed incorrect use of EnvOptions.WhitespaceStyle
	  for instance, not stylesheet.


svn path=/trunk/mcs/; revision=104881
2008-06-04 16:24:30 +00:00
Atsushi Eno 0794c874f5 2008-06-03 Atsushi Enomoto <[email protected]>
* XslVariable.cs : In XslGeneralVariable.Evaluate(), always wrap
	  custom XPathNodeIterator with XsltContext so that the iterator
	  can resolve variables. Fixed bug #316238.

	* XslTransformTests.cs : added test for bug #316238.

	* 316238-1.xsl, 316238-2.xsl : new test files.


svn path=/trunk/mcs/; revision=104748
2008-06-03 12:58:30 +00:00
Noam Lampert 5a43e30bfa Remove all vmwcproj files from old Grasshopper version
svn path=/trunk/mcs/; revision=104227
2008-05-28 09:28:24 +00:00
Atsushi Eno dad3095d01 2008-05-22 Atsushi Enomoto <[email protected]>
* XslCompiledTransform.cs : in XmlWriterSettings, use
	  ConformanceLevel.Fragment to allow fragment output.
	  In Transform(string,string), use TextWriter output instead of
	  XmlWriter to control xml declaration output.
	  Fixed bug #391424.

	* XslTransformTests.cs : added test for bug #391424.

	* 391424.xml, 391424.xsl : new test files.

	* Makefile : more simplification (and I forgot the syntax again :/)


svn path=/trunk/mcs/; revision=103783
2008-05-22 13:45:29 +00:00
Atsushi Eno c6ed142f1b 2008-01-19 Atsushi Enomoto <[email protected]>
* XslCopyOf.cs : when the evaluated argument was RTF (it could happen
	  when variable or extensions are used), copy the node itself, not
	  only its children. Fixed bug #322551.

	* XslTransformTests.cs : added test for bug #322551.


svn path=/trunk/mcs/; revision=93314
2008-01-19 11:55:07 +00:00
Atsushi Eno ea6e3df631 2008-01-08 Atsushi Enomoto <[email protected]>
* XslKey.cs, XslStylesheet.cs, Compiler.cs : XSLT 1.0 does not
	  prohibit more than one xsl:key with the same QName, so do not use
	  the name as a 'key' in the table for xsl:key. Fixed bug #351939,
	  patch by Tor Lillqvist.

	* XslTransformTests.cs : added test from bug #351939.
	  (by Tor Lillqvist)


svn path=/trunk/mcs/; revision=92426
2008-01-08 05:02:44 +00:00
Atsushi Eno 894dae4fcc 2007-12-27 Atsushi Enomoto <[email protected]>
* XslTransformTests.cs : added test for bug #349375. (Actually the
	  previous checkin fixed bug #349375.)
	  Added another notworking one inspired by the same bug.


svn path=/trunk/mcs/; revision=91940
2007-12-27 14:40:40 +00:00
Atsushi Eno a7e430277e 2007-12-17 Atsushi Enomoto <[email protected]>
* Iterator.cs : be more strict to detect the end of
	  PredicateIterator. Fixed bug #349111.

	* XslTransformTests.cs : added test for bug #349111.


svn path=/trunk/mcs/; revision=91405
2007-12-17 08:25:12 +00:00
Atsushi Eno e6024b90d2 2007-12-17 Atsushi Enomoto <[email protected]>
* Expression.cs : In any comparison expr, treat RTF as equivalent to
	  string type (as specified in XSLT 1.0 section 11.1: "An operation
	  is permitted on a result tree fragment only if that operation would
	  be permitted on a string." ...). Fixed bug #349035.

	* XslTransformTests.cs : added test for bug #349035.


svn path=/trunk/mcs/; revision=91402
2007-12-17 07:28:33 +00:00
Atsushi Eno 0ce63640a1 2007-12-17 Atsushi Enomoto <[email protected]>
* XslValueOf.cs : allow external elements in xsl:value-of.
	  Fixed bug #348786.

	* XslTransformTests.cs : added test for bug #348786.


svn path=/trunk/mcs/; revision=91401
2007-12-17 06:31:49 +00:00