xamarin-macios/tests/monotouch-test
Rolf Bjarne Kvinge 5245cfab14
[Foundation] Fix NSDictionary string indexers. (#4335)
Creating a new NSString doesn't always lead to creating a new NSString, which
will obviously cause trouble.

The scenario is:

* An NSString with the value @"Bye" is added to an NSDictionary, with the same
  string as both the key and the value.

* The (managed) string indexer is used to try to get the value back. The
  string indexer would call 'new NSString ("Bye")', which would create a new
  managed NSString, and maybe a new native NSString (or maybe it would re-use
  an existing NSString). Then the handle of this NSString would be passed to
  the native API, and the same handle would come back as the result (since the
  same string is both the key and the value). We'd call Runtime.GetNSString on
  the returned handle, get back the same managed instance that was created
  just before the call to the native method. Finally, just before returning
  this managed instance from the indexer, we'd dispose it... since it was
  created in a 'using' block. Then we'd return a disposed NSString object from
  the indexer. Ops.

The fix is to not create a managed wrapper for the NSString handle we need to
pass to the native API, but create and free the native NSString object without
using a managed wrapper.
2018-06-28 14:57:41 +02:00
..
ARKit [arkit] Update to Xcode 10 beta 1 (ARKit 2.0) (#4209) 2018-06-14 13:44:45 -04:00
AVFoundation Bump to use Xcode 10 beta 1 (#4179) 2018-06-08 18:45:24 -07:00
AVKit Bump to use Xcode 10 beta 1 (#4179) 2018-06-08 18:45:24 -07:00
AdSupport [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
AddressBook Merge branch 'xcode9.2' 2017-12-06 14:41:13 -05:00
AddressBookUI [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
Assets.xcassets/AppIcons.appiconset [tests] Import 2016-05-26 15:06:52 +02:00
AudioToolbox [monotouch-test] Update permission checks. (#3067) 2017-11-30 17:54:02 +01:00
AudioUnit [generator] Allow basic support of nullable inside our trampolines. Fixes #42699 (#1820) 2017-03-03 14:01:33 -05:00
CloudKit [tests] Update monotouch-test to add version checks when executing on older iOS versions. Fixes #43920 (#729) 2016-08-31 23:08:54 -04:00
Contacts [monotouch-test] Fix ContactStoreTest for watchOS (#3006) 2017-11-14 16:10:19 -05:00
CoreAnimation [CoreAnimation] CATextLayer.Alignment* strings should be CATextLayerAlignment enum / type. Fixes bug 59537 (#2723) 2017-09-25 10:12:53 -04:00
CoreAudioKit [tests] Add missing version check on AUViewController tests. Fixes #42440 (#393) 2016-07-13 23:10:35 -04:00
CoreBluetooth Fix macOS 10.13 test failures (#3066) 2017-12-03 19:45:28 -05:00
CoreData [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
CoreFoundation [foundation] Add NSBundle.GetLocalizedString returning an NSString. Fixes #41292 (#3266) 2018-01-20 14:00:01 -05:00
CoreGraphics Bump to use Xcode 10 beta 1 (#4179) 2018-06-08 18:45:24 -07:00
CoreImage [generator] Fix generated code for INativeObject properties in filters: we don't own such objects. (#4330) 2018-06-25 10:47:14 +02:00
CoreLocation [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
CoreML Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
CoreMedia [CoreMedia] Adds API bindings from Xcode 9 Beta 1 to stable (#2886) 2017-10-16 10:11:27 +02:00
CoreMidi [Backport 15-7][monotouch-test] Stop MidiThruConnectionTests.FindTest from randomly failing (#3702) 2018-03-09 12:49:33 -06:00
CoreMotion [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
CoreServices Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
CoreText [tests] Disable CoreText/FontDescriptorTest on tvOS. Fixes #58929 (#3061) 2017-11-29 09:10:25 -05:00
CoreVideo [tests] Adjust new tests to build on XM too 2017-11-03 15:30:04 -04:00
EventKit [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
ExternalAccessory [tests][macos] Enable more tests to be executed on macOS (XM) (#3191) 2018-01-10 20:58:49 -05:00
FileProvider Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
Foundation Merge 15.6 into xcode9.3 2018-03-05 17:16:28 -05:00
GLKit [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
GameController Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
GameKit [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
GameplayKit [tests] Build the native test library for macOS and create a binding project for it. (#3373) 2018-02-02 11:14:44 +01:00
HealthKit Merge branch 'xcode9.1' into master-merge-xcode91-take2 2017-11-03 10:30:07 -04:00
HomeKit Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
HttpClient [Foundation] Set 'sentRequest' when sending a request in NSUrlSessionHandler. (#1806) 2017-06-05 09:21:28 -04:00
ImageIO Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
Intents Bump to use Xcode 10 beta 1 (#4179) 2018-06-08 18:45:24 -07:00
JavascriptCore Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
MapKit [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
MediaAccessibility [monotouch-test] Allow more values for MACaptionAppearanceGetDisplayType. 2017-06-28 12:31:25 -05:00
MediaPlayer [tests][monotouch] Remove the ignore on MPVolumeView added in xcode9 beta 3 - it seems to work fine now (#3284) 2018-01-23 08:27:18 -05:00
MediaToolbox [macos][mediatoolbox] Add a macOS specific API for XM (#3220) 2018-01-16 08:42:11 -05:00
MessageUI [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
Messages [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
Metal Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
MetalPerformanceShaders [Metal] If the device is not supported, skip certain tests. Fixes #3389 (#3444) 2018-02-09 18:21:22 +01:00
MobileCoreServices Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
ModelIO Merge branch 'xcode9.3' into d15-7-merge-xcode9.3 2018-03-29 19:31:01 -04:00
MultipeerConnectivity Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
NaturalLanguage [NaturalLanguage] Added the new framework for Xcode10. (#4236) 2018-06-14 19:21:44 +02:00
NetworkExtension Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
ObjCRuntime [Foundation] Fix NSDictionary string indexers. (#4335) 2018-06-28 14:57:41 +02:00
OpenGLES [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
PassKit [Tests] Ensure that tests do not fail due to the locale. Fixes #3445 (#3448) 2018-02-09 21:14:57 +01:00
PdfKit Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
Photos [tests] Update tests to cope with removal of the dynamic registrar. 2018-02-15 10:24:30 +01:00
PushKit [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
QuickLook [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
ReplayKit Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
Resources [foundation] Add NSBundle.GetLocalizedString returning an NSString. Fixes #41292 (#3266) 2018-01-20 14:00:01 -05:00
SafariServices [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
SceneKit [SceneKit] Adds NullAllowed to ISCNSceneRenderer.OverlayScene (#3410) (#3423) 2018-02-07 15:02:30 -06:00
Security Bump to use Xcode 10 beta 1 (#4179) 2018-06-08 18:45:24 -07:00
Simd Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
SpriteKit [tests] Build the native test library for macOS and create a binding project for it. (#3373) 2018-02-02 11:14:44 +01:00
StoreKit Merge branch 'xcode9.2' 2017-12-06 14:41:13 -05:00
System.Net.Http Merge xcode9 into d15-4[-xi] (#2710) 2017-09-15 17:53:16 -04:00
SystemConfiguration Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
UIKit Merge branch 'xcode9.2' 2017-12-06 14:41:13 -05:00
VideoToolbox [VideoToolbox] Adds bindings from Xcode 9 Beta 1 to Stable (#2859) 2017-10-09 13:43:17 -05:00
iAd [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
mono [monotouch-tests] Adds mono's WeakAttribute tests (#3739) 2018-03-15 08:29:46 -06:00
AppDelegate.cs [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
Asserts.cs [MetalPerformanceShaders] Xcode 9 bindings (#3005) 2017-11-28 14:29:05 -06: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 [tests] Import 2016-05-26 15:06:52 +02:00
Hand.wav [tests] Import 2016-05-26 15:06:52 +02:00
Info.plist [tests] Remove Classic test projects, and make the Unified test projects the master projects. (#858) 2016-09-21 22:55:10 +02: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 [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
Makefile [tests] Import 2016-05-26 15:06:52 +02:00
Model3.arobject [arkit] Update to Xcode 10 beta 1 (ARKit 2.0) (#4209) 2018-06-14 13:44:45 -04:00
NativeTypesTest.cs [tests] Import 2016-05-26 15:06:52 +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
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
drum01.mp3 [tests] Import 2016-05-26 15:06:52 +02:00
monotouch-test.csproj [arkit] Update to Xcode 10 beta 1 (ARKit 2.0) (#4209) 2018-06-14 13:44:45 -04:00
xamvideotest.mp4 [tests] Import 2016-05-26 15:06:52 +02:00