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

32 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge a2e2fef0c2
[introspection] Fix macOS 10.15 version checks. (#13315)
The logic seems to want to verify MPSPredicate on maOS 10.14, but not on macOS
10.15+. But checking for macOS 10.14 is always successful on macOS 10.15+,
which means that we can't check for macOS 10.14 before checking macOS 10.15.
So I moved the macOS 10.14 check to after the macOS 10.15 check, but that made
the macOS 10.14 check redundant, because both branches of the condition did
the same thing, so I removed the whole check.

Fixes this introspectionf failure:

    [FAIL] DefaultCtorAllowed :   1 potential errors found in 1387 default ctor validated:
        Default constructor not allowed for MetalPerformanceShaders.MPSPredicate : Could not initialize an instance of the type 'MetalPerformanceShaders.MPSPredicate': the native 'init' method returned nil.
2021-11-11 16:07:51 +01:00
Manuel de la Pena 5261242a4f
[Tests] Fix intro tests on older macOS (#11736)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2021-06-04 13:22:13 -04:00
Sebastien Pouliot 4d53f14118
[tests] Re-enable ModelIO in Mac's introspection tests (fixed in 11.1 beta 2) (#10239) 2020-12-08 21:35:12 -05:00
Alex Soto 2a6320ba55
[tests] Fix macOS 11 intro/apitest (#9844)
* 'GKGameCenterViewController' init throws on macOS 11 and makes sense
  to remove the DefaultCtor since it has other init methods that
  should be used instead. Added XAMCORE_4_0 removal.

* 'ModelIO' seems to be broken in macOS 11.0, if you touch several
  types you end up getting some C++ errors

* 'CoreSpotlight.CSLocalizedString' crashes in Xcode 12.0 GM and now
  in Xcode 12.2 Beta 2 on macOS.

Added issues to check for future betas/GM here #9744
2020-10-12 13:37:22 -04:00
Sebastien Pouliot a8c5216148
[xcode12] Introspection-based fixes for Big Sur (#9632) 2020-09-15 08:56:24 -04:00
Rolf Bjarne Kvinge 952037b7a3
[tests] Remove Classic code from all tests. (#8707) 2020-05-29 16:43:06 +02:00
Rolf Bjarne Kvinge 1ae28bf034
[introspection] Update according to changes that seem to have occurred in macOS 10.15.2. (#7567) 2019-12-12 07:28:23 +01:00
Rolf Bjarne Kvinge 1254cc145e [introspection] Adjust according to behavior on macOS 10.15. Fixes #6426.
Fixes https://github.com/xamarin/xamarin-macios/issues/6426.
2019-06-26 14:16:57 +02:00
Vincent Dondain eec95e881c Merge branch 'd15-8' into xcode10-rebase-15.8 2018-08-13 21:04:56 -04:00
Rolf Bjarne Kvinge 22122749af [tests][introspection] Adjust skip checks so that introspection runs on older macOS versions successfully. 2018-07-03 16:54:37 +02:00
Rolf Bjarne Kvinge aa9243f528
[introspection] Put type-based exception in the type-based switch. (#3636) 2018-03-02 09:38:53 +01:00
Rolf Bjarne Kvinge a2676ba064
[introspection] Don't process IKPictureTaker, it may crash at any time. (#3599)
See also https://bugzilla.xamarin.com/show_bug.cgi?id=46624, where the same
logic was applied to apitest.

Ref: https://trello.com/c/T6vkA2QF/62-29311598-ikpicturetaker-crashes-randomly-upon-deallocation?menu=filter&filter=corenfc
2018-02-26 17:31:41 +01:00
Sebastien Pouliot 7c45477e40
[foundation][uikit] Add missing [DesignatedInitializer] on default constructor (#3454)
Like reported by xtro (data files updated)
using the new, simpler `[DesignatedDefaultCtor]` attribute
2018-02-12 22:52:33 -05:00
Rolf Bjarne Kvinge dd95d17b5f
[generator] Properly set the IsDirectBinding value. (#3063)
* [generator] Properly set the IsDirectBinding value.

Properly set the IsDirectBinding value to false for models and synthetic types.

This also means we can now stop excluding models when testing if the
IsDirectBinding value is correct.

Also set IsDirectBinding value to true for sealed wrapper types, since those
will always be direct bindings since they can't be subclassed.

https://gist.github.com/rolfbjarne/24028bf944db848fed4083c460d0ec71

* [tests] Add introspection exclusion for XM.

* [introspection] Add back exclusions for Classic, since we can't modify/fix Classic assemblies anymore.

* [generator] Print the correct protocol name with the protocol attribute.

Fixes this test failure:

    [FAIL] Foundation.NSUrlDownloadDelegate : ConformsToProtocol(null) failed

because our binding code claimed that our `NSUrlDownloadDelegate` class
implemented the `NSUrlDownloadDelegate` protocol, but since the
`NSUrlDownloadDelegate` protocol doesn't exist (it's `NSURLDownloadDelegate` -
different case), we'd verify against a null protocol (and return true from
`ConformsToProtocol(null)`, which would fail the test).

* [xtro] Only treat interfaces as protocols.

Unfortunately we add [Protocol] to [Model]s as well as on interfaces, but we
must not process those in xtro, since they don't correspond with the actual protocol.
2017-12-01 15:18:20 +01:00
Chris Hamons 31742eb3fb
Fix test failures on 10.13 (#3065) 2017-11-30 12:55:58 -06:00
Timothy Risi 27741b636c [macOS] Fix Introspection and API tests (#2891) 2017-10-23 11:22:17 -08:00
Chris Hamons aca0e2ed2e Fix a number of introspection test failures on 10.13 (#2815) 2017-10-02 16:55:23 -05:00
Timothy Risi bcc05aa5ff [Foundation] Update for xcode9 (#2468) 2017-08-15 08:32:51 -04:00
Chris Hamons 4d3d350c17 Update code after radar 32929318 and 32897776 are fixed in b4 (#2394) 2017-08-01 12:27:09 -05:00
Chris Hamons f49c7c1aa5 Remove Xcode9 radar test exclusions that have been closed by Apple (#2313) 2017-07-12 09:32:09 -05:00
Chris Hamons c9b8b013c8 Fix test issues introduced in macOS beta 3 (#2316) 2017-07-12 09:31:14 -05:00
Chris Hamons 2515e9ba73 [macos] Introspection test fixes for 10.13 (#2234) 2017-06-22 12:43:43 -05:00
Sebastien Pouliot de090b86d4 [tests][macos][intro] Fix XM classic introspection tests. Fixes #52065 (#1595) (#1597)
The latest Sierra had a few surprises:

* CITextFeature is now 64bits only;
* The MediaPlayer framework is now 64bits only [1]

Both made the classic tests fails for XM.

[1] https://bugzilla.xamarin.com/show_bug.cgi?id=52065
2017-01-31 14:45:30 -05:00
Sebastien Pouliot 38148c718a Merge branch 'xcode8' 2016-09-09 15:29:37 -04:00
Chris Hamons 9f27f8b6bc [XM] Disable QLPreviewPanel in introspection ctor tests due to random failure (#611) 2016-08-15 14:44:30 -05:00
Chris Hamons 31f056244c Revert "Enable logging during mac introspection tests (#510)" (#586)
- This reverts commit 9e731e842c.
- We've hopefully nailed down the test failure.
2016-08-09 20:27:50 -04:00
Chris Hamons a3c7029c6a [XM] Fix "random" crash in introspection tests (#565)
- Hopefully kill https://bugzilla.xamarin.com/show_bug.cgi?id=42267
2016-08-05 16:14:37 -05:00
Chris Hamons 9e731e842c Enable logging during mac introspection tests (#510)
- Try to track down a random crash
- https://bugzilla.xamarin.com/show_bug.cgi?id=42267
2016-08-02 08:33:01 -05:00
Chris Hamons 5ddc619589 [XM] Update bindings and tests for Xcode8b3 (#467)
* [XM] AppKit Xcode8 Beta3 changes

* [XM] Update intents.cs with macOS attributes

* [XM] Fix bindings caught by introspection test

* [XM] Fix classic introspection tests by marking safariservices as 64-bit only

* [XM] Async upgrade

* [XM] Fix apitest on classic by noting IntentsLibrary is 64-bit only
2016-07-22 17:10:23 -04:00
Chris Hamons 55eb0c8537 Fix bindings to pass introspection tests on 10.12 Xcode 8b1 (#353) 2016-07-08 09:09:10 -05:00
Chris Hamons 04e7b77f1a Remove duplication found in tests and unify namespaces of common code (#250)
* Remove duplication found in tests and unify namespaces of common code

* Stub out dontlink-mac since introspection took over
2016-06-21 15:46:07 -08:00
Sebastien Pouliot 00ada0f773 Move parts of dontlink tests into new introspection tests (#32)
Those tests needs to be run with the linker disabled since they use
reflection for most of their work.

The original dontlink (for linker tests) was becoming too large in
some configuration (e.g. tvOS release with bitcode) but this was
due to other BCL assemblies (not the introspection tests)
2016-05-04 20:14:32 -04:00