xamarin-macios/tests/monotouch-test
Rolf Bjarne Kvinge a8bf64b053
[CoreServices] Fix FSEventStream to properly pass the managed context to the FSEventStreamCreate method. Fixes #13325. (#13329)
The FSEventStreamCreate method takes a pointer to a structure with context information,
which contains a user-defined pointer value in addition to a few callbacks. Previously
we were passing the GCHandle as a pointer to this structure, which is obviously quite
wrong (as evidenced by a native crash when calling FSEventStreamCreate).

Changes:

* Modify the code to provide the expected context structure instead with the GCHandle
  as a field in that structure.
* Add a release callback to the context structure to release the GCHandle.
    * This avoids the need for storing the GCHandle as a field in the FSEventStream instance.
    * It also avoids also the need for overriding Dispose to release said GCHandle.
* Modify the callback code to use the [UnmanagedCallersOnly] attribute for .NET
  (ref: #10470).

This was a regression introduced in 8c99bdc9ad.

Fixes https://github.com/xamarin/xamarin-macios/issues/13325.
2021-11-10 11:13:28 -05:00
..
ARKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
AVFoundation [Tests] Remove not needed usings in the AVFoundation tests. (#13247) 2021-11-03 16:35:51 -04:00
AVKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
Accessibility [Accessibility] Update bindings for Xcode 13.0 beta 1 (#11998) 2021-07-07 17:25:31 -04:00
AdSupport [tests] Remove Classic code from all tests. (#8707) 2020-05-29 16:43:06 +02:00
AddressBook [monotouch-tests] disable some more MacCat crashers 2021-04-07 00:04:48 -04:00
AddressBookUI [catalyst][addressbookui] Remove AddressBookUI framework that is not available on Catalyst (#10711) 2021-02-25 11:22:02 -05:00
AppKit [AppKit] Remove NSMenuView from .NET (it's a 32-bit only type). (#13291) 2021-11-08 16:15:41 +01:00
Assets.xcassets/AppIcons.appiconset [tests] Import 2016-05-26 15:06:52 +02:00
AudioToolbox [SystemSound] Don't implement the INativeObject interface for .NET. (#13324) 2021-11-10 11:41:50 +01:00
AudioUnit [Tests] Remove not needed usings in the AudioUnit tests. (#13235) 2021-11-03 10:33:42 -04:00
AuthenticationServices [AuthenticationServices] Updates for Xcode13 Beta3 (#12203) 2021-08-04 10:11:26 -04:00
BackgroundTasks [Tests] Remove not needed usings in the BGTasks tests. (#13248) 2021-11-03 16:37:14 -04:00
CarPlay Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
ClockKit [ClockKit] Add support for Xcode 12 beta 1. (#9010) 2020-07-14 11:12:26 -04:00
CloudKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
Compression [Tests] Remove not needed usings in the Compression tests. (#13249) 2021-11-03 16:38:08 -04:00
Contacts [Tests] Remove not needed usings in the Contacts tests. (#13250) 2021-11-03 16:42:06 -04:00
CoreAnimation [CoreAnimation] Add support for Xcode 13.1 rc. (#13227) 2021-11-03 18:52:48 -04:00
CoreAudioKit [Tests] Remove not needed usings in the CoreBluetooth and CoreAudioKit tests. (#13252) 2021-11-03 16:50:09 -04:00
CoreBluetooth [CoreBluetooth] Use new availability attributes and remove API that isn't in Apple's headers from .NET. (#13293) 2021-11-08 21:32:18 +01:00
CoreData [Tests] Remove not needed usings in the CoreData and CoreFoundation tests. (#13254) 2021-11-03 16:48:48 -04:00
CoreFoundation [Tests] Remove not needed usings in the CoreData and CoreFoundation tests. (#13254) 2021-11-03 16:48:48 -04:00
CoreGraphics [CGPDFObject] Make CGPDFObject a subclass of CGPDF[Array|Dictionary|Stream] + a few other fixes. (#13253) 2021-11-04 16:33:30 +01:00
CoreImage [Tests] Remove not needed usings in the CoreImage & CoreLocation tests. (#13256) 2021-11-03 17:24:44 -04:00
CoreLocation [Tests] Remove not needed usings in the CoreImage & CoreLocation tests. (#13256) 2021-11-03 17:24:44 -04:00
CoreML Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
CoreMedia [CoreMedia] Add support for xcode13 (#12770) 2021-09-24 18:19:49 -04:00
CoreMidi Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
CoreServices [CoreServices] Fix FSEventStream to properly pass the managed context to the FSEventStreamCreate method. Fixes #13325. (#13329) 2021-11-10 11:13:28 -05:00
CoreText [.NET] Move the nfloat type to the ObjCRuntime namespace for .NET. (#13092) 2021-10-28 11:06:31 +02:00
CoreVideo [CoreVideo] Add support for Xcode 13 beta3. (#12257) 2021-09-13 11:09:26 -04:00
CoreWlan Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
Darwin [tests] Preserve all test fixtures. (#10870) 2021-03-16 15:15:30 +01:00
EventKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
ExternalAccessory [monotouch-tests] Import some fixes from xamarin/xamarin-macios#10587 2021-04-06 22:59:51 -04:00
FileProvider Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
Foundation [Tests] Remove not needed usings in the Foundation tests. (#13233) 2021-11-03 10:33:17 -04:00
GLKit [monotouch-test] Make it work with Mac Catalyst. 2021-01-15 17:52:28 +01:00
GameController Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
GameKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
GameplayKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
HealthKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
HomeKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
HttpClient Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
ImageIO [CGImageMetadataTag] Subclass NativeObject + numerous other code updates (#13240) 2021-11-04 14:54:06 +01:00
Intents Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
JavascriptCore Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
MLCompute Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
MapKit [monotouch-test] Make it work with Mac Catalyst. 2021-01-15 17:52:28 +01:00
MediaAccessibility Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
MediaPlayer Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
MediaToolbox Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
MessageUI Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
Messages Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
Metal [Metal] Add support for xcode 13 beta5 . (#12875) 2021-10-05 13:32:48 -04:00
MetalPerformanceShaders [Tests] Ignore a number of tests that fail on a VM. Update README. (#12597) 2021-08-31 17:45:14 -04:00
MetricKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
MobileCoreServices [tests] Remove Classic code from all tests. (#8707) 2020-05-29 16:43:06 +02:00
ModelIO Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
MonoMac [ObjCRuntime] Add a non-deprecated internal system-version checking API and use it everywhere. (#13231) 2021-11-04 11:13:23 +01:00
MultipeerConnectivity [monotouch-test] Make it work with Mac Catalyst. 2021-01-15 17:52:28 +01:00
NaturalLanguage Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
NearbyInteraction Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
Network [Network] Implement all bindings up to Xcode 13.1 (#13135) 2021-11-08 11:37:47 -05:00
NetworkExtension Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
ObjCRuntime [AppKit/Foundation/UIKit] Use Foundation.NSWritingDirection instead of UIKit.UITextWritingDirection and AppKit.NSWritingDirection for .NET. Fixes #6573. (#13243) 2021-11-05 08:12:44 +01:00
OpenGL [tests] Preserve all test fixtures. (#10870) 2021-03-16 15:15:30 +01:00
OpenGLES Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
PassKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
PdfKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
Phase [PHASE] Add suppport for Xcode13 beta 2. (#12098) 2021-08-04 22:38:03 -04:00
Photos Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
PushKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
QuickLook [monotouch-test] Make it work with Mac Catalyst. 2021-01-15 17:52:28 +01:00
ReplayKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
Resources [xcode12] [ImageIO] Update bindings for Xcode11 (#8942) 2020-06-25 15:28:29 -04:00
SafariServices [monotouch-test] Ignore ReadingListTest.DefaultReadingList. (#12383) 2021-08-09 14:51:44 +02:00
SceneKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
ScriptingBridge [tests] Preserve all test fixtures. (#10870) 2021-03-16 15:15:30 +01:00
SearchKit [tests] Preserve all test fixtures. (#10870) 2021-03-16 15:15:30 +01:00
Security [Security] Remove the SslCipherSuite enum from .NET. Fixes #11498. (#13307) 2021-11-08 22:09:47 +01:00
Simd Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
SpriteKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
StoreKit Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
System.Net.Http [tests] Add more special cases for random network errors on CI. (#12879) 2021-10-01 08:36:40 +02:00
SystemConfiguration [monotouch-test] Give up in CaptiveNetworkTest.TryCopyCurrentNetworkInfo. Fixes #12278. (#12291) 2021-07-30 09:52:32 +02:00
UIKit [.NET] Move the nfloat type to the ObjCRuntime namespace for .NET. (#13092) 2021-10-28 11:06:31 +02:00
UniformTypeIdentifiers Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
VideoToolbox Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
Vision Fix VNUtilsTests 2021-08-23 14:48:32 -04:00
WebKit [tests] Add an Xcode 13.1 version check in WKPreferencesTest. (#13170) 2021-10-29 16:07:53 +02:00
dotnet Submodule MonoTouch.Dialog. (#13058) 2021-10-26 08:18:34 +02:00
mono Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
.gitignore Update .gitignore. 2020-08-03 11:53:17 +02:00
AppDelegate.cs [tests] Add debug spew to track down #xamarin/maccore@2414. (#12354) 2021-08-06 09:45:55 +02:00
Asserts.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
AssertsMac.cs [tests] Merge apitest into xammac_tests. (#10276) 2020-12-18 11:45:06 +01:00
BoardingPass.pkpass [tests] Import 2016-05-26 15:06:52 +02:00
EmptyNib.xib [tests] Import 2016-05-26 15:06:52 +02:00
Entitlements.plist [Network] Partial bindings of Network for Xcode 12 beta 6. (#9623) 2020-09-28 18:22:42 -04:00
Hand.wav [tests] Import 2016-05-26 15:06:52 +02:00
Info.plist Bump the minimum iOS version to 7.0. Fixes #6213. (#6878) 2019-08-30 01:07:30 -07:00
LL-171A-B-B797E457-16AB-C708-1E0F-32C19DBD47B5.icc [tests] Import 2016-05-26 15:06:52 +02:00
LaunchScreen.storyboard [tests] Import 2016-05-26 15:06:52 +02:00
Main.cs Fix some whitespace issues in various files. (#12399) 2021-08-11 10:06:46 +02:00
Makefile [tests] Import 2016-05-26 15:06:52 +02:00
Model3.arobject [arkit] Update to Xcode 10 beta 3 (#4406) 2018-07-05 22:36:33 -04:00
NativeTypesTest.cs [tests] Remove Classic code from all tests. (#8707) 2020-05-29 16:43:06 +02:00
Pacifico.ttf [tests] Import 2016-05-26 15:06:52 +02:00
Tamarin.pdf [tests] Import 2016-05-26 15:06:52 +02:00
access-denied.html [wkwebkit] Update for Xcode 11 beta 3 (#6496) 2019-07-04 13:08:21 -04:00
access-granted.html [wkwebkit] Update for Xcode 11 beta 3 (#6496) 2019-07-04 13:08:21 -04:00
app.config [monotouch-test] Add test to ensure config files are properly bundled in apps. (#1291) 2016-12-02 14:13:25 +01:00
basn3p08.png [tests] Import 2016-05-26 15:06:52 +02:00
compressed_lz4 [Compression] Add compression framework bindings. (#3942) 2018-05-11 15:54:31 -04:00
compressed_lze [Compression] Add compression framework bindings. (#3942) 2018-05-11 15:54:31 -04:00
compressed_lzma [Compression] Add compression framework bindings. (#3942) 2018-05-11 15:54:31 -04:00
compressed_zip [Compression] Add compression framework bindings. (#3942) 2018-05-11 15:54:31 -04:00
drum01.mp3 [tests] Import 2016-05-26 15:06:52 +02:00
example.pac [Tests] Update xamarin domain to make tests not fail. (#11408) 2021-05-02 20:11:16 -04:00
monotouch-test.csproj [src] Rename MAC_* variables to MACOS_* variables. (#12998) 2021-10-18 07:24:37 +02:00
uncompressed.txt [Compression] Add compression framework bindings. (#3942) 2018-05-11 15:54:31 -04:00
xamvideotest.mp4 [tests] Import 2016-05-26 15:06:52 +02:00