Граф коммитов

6259 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 64c8f864b3
[ObjCRuntime] Make Class IEquatable. (#5922)
Makes it easier for tests to compare arrays of Classes, since existing NUnit
API supports comparing arrays of IEquatables.
2019-04-23 06:31:13 +01:00
Rolf Bjarne Kvinge 3e75c76d89
[runtime] Get the domain at the top of xamarin_invoke_trampoline. (#5925)
This avoids calling it multiple times in a loop further down in the method.
2019-04-23 06:30:46 +01:00
Rolf Bjarne Kvinge 464882d14a
[runtime] Refactor a little bit to avoid code duplication. (#5924) 2019-04-23 06:29:20 +01:00
Rolf Bjarne Kvinge adb57537b5
[bgen] Show an error if trying to bind an array of selectors. (#5923) 2019-04-23 06:29:03 +01:00
Rolf Bjarne Kvinge 66ba411303 [UIKit] Don't crash if UIGestureRecognizer.Dispose is called multiple times. Fixes #5899. (#5921)
Fixes https://github.com/xamarin/xamarin-macios/issues/5899.
2019-04-22 15:52:06 -05:00
Chris Hamons ee09409baa
[msbuild][mac] Fix forcing provisioning profile when entitlements set (#5912)
- https://github.com/xamarin/xamarin-macios/issues/5061
2019-04-22 13:11:07 -05:00
Alexander Köplinger 946e0174b0 Bump mono
New commits in mono/mono:

* mono/mono@cf880be66a [Mono.Runtime.Tests] Exclude simd tests

Diff: 158b6137fa..cf880be66a
2019-04-17 15:23:36 +02:00
Alexander Köplinger 8ed5e3926a bcl-test-importer: Add three more unit test assemblies 2019-04-17 14:58:49 +02:00
Alexander Köplinger 3ebafb9725 bcl-test-importer: Correctly process watch/tv assemblies
The missing test assemblies validator wasn't matching them since it looked for monotouch_, instead of monotouch_watch_
2019-04-17 14:33:50 +02:00
Alexander Köplinger fc7008d226 bcl-test-importer: Select first type that ends with Test/Tests
We need to avoid selecting some unrelated type that could conflict between assemblies like FileCleanupTestBase.
2019-04-17 14:32:27 +02:00
Alexander Köplinger 65153f4985 Add System.Runtime.CompilerServices.Unsafe xunit test to iOS 2019-04-17 12:20:27 +02:00
Alexander Köplinger b1dc78525d bcl-test-importer: Append .Unsafe to System.Runtime.CompilerServices test suite
It's actually an important distinction.
2019-04-17 12:18:29 +02:00
Alexander Köplinger dbbc954447 Reenable tests that were fixed 2019-04-17 11:30:41 +02:00
Alexander Köplinger 0da0bcaaae Merge remote-tracking branch 'upstream/master' into mono-2019-02 2019-04-17 11:29:35 +02:00
Alexander Köplinger d405c37692 Bump mono
New commits in mono/mono:

* mono/mono@158b6137fa [corefx] Use fallbacks when link() fails
* mono/mono@5a9fb2376d [MacSDK] Bump F# to 4.5 (#10919)
* mono/mono@eb478b5163 [gsharedvt] Fix sizeof opcode (#13831)
* mono/mono@d67de36ffb [2019-02] [arm] align stack pointer in throw trampoline (#14083)
* mono/mono@d3ece1d29f [2019-02] [aot] change method table generation so that it works for larger assemblies on ARM (#14052)
* mono/mono@d76895f97f [WinForms] Fix displayed image in TreeNode when ImageIndex set to -2 When ImageIndex in TreeNode set to -2 must not displayed any image

Diff: d75c142a46..158b6137fa
2019-04-17 11:29:21 +02:00
Alexander Köplinger 9bd927bb7f Workaround https://github.com/xamarin/xamarin-macios/issues/5760 in generator csproj 2019-04-16 17:59:23 +02:00
Alexander Köplinger cf8d42e4c0 [testgenerator] Fix generated decimal values when separator isn't point
E.g. in German the decimal separator is comma which makes the generated C# invalid.

Fix by always doing culture invariant ToString().
2019-04-16 12:32:01 +02:00
Manuel de la Pena c734cf2def
[CFNetwork] Ensure we do not block on redirects. (#5900)
The changes in mono are changing threading. This means that the code is
getting deadlock in the ReadStreamData.

This happens because we were not removing the handlers from the first requests events.
Initially, before we had to take care about the auth headers, this was needed to init
certain internal state for the HttpContent that was sexposed to the
user. With the fix of the CVE, the first request, in case of a redirect,
is garbage and is ignored. The second request is the one returned to the
user and contains all the required info.

Removing the event handlers, ensure that HandleClose is not called and
therefore ReadStream is never called.
2019-04-16 12:14:17 +02:00
William Kent dc8e07f678 Add macOS Xcode archive support (#5862)
* Initial commit of ArchiveTaskBase for macOS

* Fix namespace

* Add concrete Archive task

* Add Archive target to Xamarin.Mac.Common.targets

* Remove TODOs for non-applicable items

* Add more properties to archive Info.plist

* Add more parameters to Archive task

* Set the ArchiveDir output parameter

* Move ITunesSourceFiles parameter

* Add test

* Fix msbuild mistakes preventing archive from working

* Reorder ApplicationProperties to be at top like iOS

* Add note

* Improve error handling

* Fix archive to be loadable in Xcode

* 4 spaces to tabs

* More space -> tab
2019-04-15 15:20:18 -05:00
Alexander Köplinger 455af1ccc1 Merge remote-tracking branch 'upstream/master' into mono-2019-02 2019-04-15 15:05:36 +02:00
Alexander Köplinger 8308ec9c67 Bump Mono .pkg version 2019-04-15 15:05:13 +02:00
Alexander Köplinger db657ee58b Bump mono
New commits in mono/mono:

* mono/mono@d75c142a46 Bump corefx to get unit test fix

Diff: b85fdbdb10..d75c142a46
2019-04-15 11:37:05 +02:00
Rolf Bjarne Kvinge d4e41445a2
[jenkins] Set a 1h build timeout. (#5893)
Builds take approximately 30 minutes on a bot now, so 1 hour should be plenty.

This makes sure a 32-bit dialog doesn't waste 9h of bot time just sitting
there.
2019-04-12 19:06:04 +02:00
Rolf Bjarne Kvinge 0aa5025c40
Merge pull request #5891 from rolfbjarne/bgen-inprocess-tests
[bgen] Add support for sequential and parallel execution of the generator within the same process.
2019-04-12 19:05:47 +02:00
Chris Hamons 2278512aba [launcher] Pass --use-map-jit to mono on XM app startup
- Related: https://github.com/mono/mono/pull/13446
    - Patch by Miguel
2019-04-12 18:06:28 +02:00
Alexander Köplinger 505a957acc [bcl-tests] Add Microsoft.CSharp reference to Mono.CSharp_test.dll on XM
It's needed for the C# "dynamic" feature.
2019-04-12 17:43:18 +02:00
Alexander Köplinger 51d66ea5cc Bump mono
New commits in mono/mono:

* mono/mono@b85fdbdb10 [corlib] Disable FileTest.SymLinkStats() on TVOS
* mono/mono@170a35d5fd Remove TypedReference.MakeTypedReference readonly restriction
* mono/mono@a1accb6f3e [w32error] Add ENONET error case
* mono/mono@b31a8fac42 [jit] Make dlmalloc use mono_valloc so it picks up the MAP_JIT flag on osx.
* mono/mono@bcea757791 [utils] stub mono_setmmapjit on Win32 and Wasm
* mono/mono@0a47789f15 Do not use MAP_JIT by default, instead make this something that is toggled by Xamarin.Mac which needs it

Diff: bfbc3b7366..b85fdbdb10
2019-04-12 16:37:06 +02:00
Rolf Bjarne Kvinge 05dda1afc0 Merge remote-tracking branch 'origin/master' into bgen-inprocess-tests 2019-04-12 15:33:24 +02:00
Rolf Bjarne Kvinge 409861b0f6
[bgen] Build the frameworks.g.cs from BUILD_DIR. (#5894)
This fixes an issue with the per-pr api/generator diff comparison, since with
this change we now build src/ with the right source code.
2019-04-12 15:33:16 +02:00
Rolf Bjarne Kvinge dd239ce1ff Merge remote-tracking branch 'origin/master' into bgen-inprocess-tests 2019-04-12 15:32:24 +02:00
Rolf Bjarne Kvinge 4967d6f516
[apidiff] Make temporary / stamp paths depend on APIDIFF_DIR. Fixes maccore#1522. (#5895)
This fixes an issue with the api comparison since the api comparison fails if
it detects unexpected modified files. Putting the temporary files in
APIDIFF_DIR makes sure the api comparison doesn't see those files as
unexpectedly modified.

Fixes https://github.com/xamarin/maccore/issues/1522.
2019-04-12 15:31:27 +02:00
Alexander Köplinger 1cdf2ac3a8 Revert "[XHarness] Update ignore for some failing tests. (#5887)"
This reverts commit a3ad78c937.

It was fixed in mono 2019-02.
2019-04-11 20:31:48 +02:00
Alexander Köplinger 915b3f425e Bump mono
New commits in mono/mono:

* mono/mono@bfbc3b7366 Bump corefx to get System.Linq.Expressions test fix
* mono/mono@44792fcb6d [nuget] Bump to nuget 5.0.0
* mono/mono@4d6d75648d delete redundant try/catch from test
* mono/mono@0771040bd1 Fix NRE when combobox was disposed and Text setted
* mono/mono@556b1c4828 Fix local variable assign
* mono/mono@32a7cc8792 Fix Stackoverflow when SplitContainer`s SplitterDistance setted in SplitterMoved event subscription
* mono/mono@014b86cdba [SWF] Method OnClosed should pass FormClosedEventArgs type, instead of EventArgs.
* mono/mono@ff2865a078 [2019-02] [profiler] Add duration=NUM parameter to AOT profiler (#13688) (#13967)

Diff: 766b3204c3..bfbc3b7366
2019-04-11 20:31:33 +02:00
Alexander Köplinger db86c8cc88 Merge remote-tracking branch 'upstream/master' into mono-2019-02 2019-04-11 20:28:57 +02:00
Rolf Bjarne Kvinge 9713bea70e
[tests][mono-native] Adjust logic which is causing tests to fail on tvOS. (#5877)
Fixes this when running on tvOS using dylibs:

> [FAIL] Introspection.CheckSymbols : dlsym() not found mono_native_initialize()

Now:

* If on iOS, we'll always have the `mono_native_initialize` symbol, because the symbol is used in P/Invoke in a user assembly (the test assembly itself), and mtouch will make the AOT-compiled code use dlsym for P/Invokes in user assemblies (and when using dlsym we can't (native) strip away the symbol).
* If on watchOS or tvOS, we'll have the symbol when we're loading `mono_native_initialize` from a dylib. If loading `mono_native_initialize` from a static library, we can (native) strip away the symbol because mtouch will make the AOT-compiled P/Invoke use a static reference to the native symbol, and thus the `mono_native_initialize` symbol will not be present in the executable.
2019-04-11 19:41:25 +02:00
Rolf Bjarne Kvinge 86a76998f1 Revert accidental mono bump. 2019-04-11 19:38:21 +02:00
Rolf Bjarne Kvinge 89b397bacf [bgen] Add a GeneratedTypes class to avoid having a static GeneratedType.knownTypes field. 2019-04-11 18:02:13 +02:00
Rolf Bjarne Kvinge bead5c0159 [bgen] Make Generator.BindingTouch an instance field. 2019-04-11 18:02:13 +02:00
Rolf Bjarne Kvinge ab9de421b5 [bgen] Make Generator.BindThirdPartyLibrary an instance property. 2019-04-11 18:02:13 +02:00
Rolf Bjarne Kvinge fb459cbcdd [bgen] Remove unused Stret.BindingTouch field. 2019-04-11 18:02:13 +02:00
Rolf Bjarne Kvinge 9a6b4c4e4c [bgen] Make Generator.CurrentPlatform an instance property. 2019-04-11 18:02:13 +02:00
Rolf Bjarne Kvinge 8288de174a [bgen] Remove the static Stret.TypeManager property. 2019-04-11 18:02:13 +02:00
Rolf Bjarne Kvinge 6450390ad8 [bgen] Make Generator.TypeManager an instance property. 2019-04-11 18:02:13 +02:00
Rolf Bjarne Kvinge 048ab300c6 [bgen] Make Generator.Frameworks an instance property. 2019-04-11 18:02:13 +02:00
Rolf Bjarne Kvinge 90da04acca [bgen] Remove the static Stret.isUnified member. 2019-04-11 18:02:13 +02:00
Rolf Bjarne Kvinge d88d92508c [bgen] Make Generator.UnifiedAPI an instance property. 2019-04-11 18:02:13 +02:00
Rolf Bjarne Kvinge 81d6b1aa24 [bgen] Make various type maps instance members. 2019-04-11 18:02:13 +02:00
Rolf Bjarne Kvinge ba721ed007 [bgen] Make Generator.XamcoreVersion an instance property. 2019-04-11 18:02:13 +02:00
Rolf Bjarne Kvinge 097338eda7 [bgen] Make Generator.AttributeManager an instance field.
This requires passing a Generator instance around in several places (or
alternatively making static Generator members instance members instead).
2019-04-11 18:02:13 +02:00
Rolf Bjarne Kvinge df4cd48de1 [bgen] Make Generator.NamespaceManager and Generator.ns instance members. 2019-04-11 18:02:13 +02:00