xamarin-macios/tests/monotouch-test/CoreFoundation
Sebastien Pouliot 9a8855117b
[corefoundation] Fix TypeInitializationException in OSLog (#7962)
`Default` property was using a nil-handle which is incorrect since
* we don't allow that (this is generally a bad sign)
* it does not map to `OS_LOG_DEFAULT`

Since `Default` was assigned in the type (static) constructor then
the whole type became unusable :(

Header `log.h` shows that the right definition requires us to load a
field and use it.

```
define OS_LOG_DEFAULT OS_OBJECT_GLOBAL_OBJECT(os_log_t, _os_log_default)
```

While `NULL` can actually be used for disabled (not exposed) by this
contradicting (nullability-wise) macro

```
define OS_LOG_DISABLED ((os_log_t _Nonnull)NULL)
```

Also adds unit tests. A more general tests for `.cctor` will be added
to introspection tests in a separate PR.

Fixes https://github.com/xamarin/xamarin-macios/issues/7959
2020-02-25 08:55:37 -05:00
..
BundleTest.cs [monotouch-test] Adjust expected value for watchOS bundle id. (#6128) 2019-05-24 06:30:05 -07:00
DispatchBlockTests.cs [tests] Adjust DispatchBlock tests according to minimum OS. (#5435) 2019-01-21 07:49:28 +01:00
DispatchDataTest.cs [CoreFoundation] Add some helper methods to make DispatchData easier to use. (#7690) 2020-01-09 22:47:21 -05:00
DispatchGroupTest.cs [tests] Adjust DispatchBlock tests according to minimum OS. (#5435) 2019-01-21 07:49:28 +01:00
DispatchQueueTest.cs [tests] Adjust DispatchBlock tests according to minimum OS. (#5435) 2019-01-21 07:49:28 +01:00
DispatchTests.cs [Tests] GetGlobalQueue_QualityOfService is only supported on Mac OS X 10.10 and later (#7419) 2019-11-13 06:03:23 -05:00
MutableString.cs [corefoundation] Add missing CFStringTransform API. Fixes #5705 (#5712) 2019-03-06 08:04:17 -05:00
NetworkTest.cs [Tests] Centralized the endpoints for the different network tests. (#7418) 2019-11-14 05:45:33 -05:00
NotificationCenterTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
OSLogTest.cs [corefoundation] Fix TypeInitializationException in OSLog (#7962) 2020-02-25 08:55:37 -05:00
PropertyListTests.cs Xcode10 CoreGraphics B1-B5 (#4198) 2018-08-01 16:25:40 +02:00
ProxyTest.cs [Tests] Centralized the endpoints for the different network tests. (#7418) 2019-11-14 05:45:33 -05:00
StringTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
UrlTest.cs [CoreFoundation] Add tests for CFUrl retain count (#6101) 2019-05-23 22:36:54 -07:00