9a8855117b
`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 |
||
---|---|---|
.. | ||
BundleTest.cs | ||
DispatchBlockTests.cs | ||
DispatchDataTest.cs | ||
DispatchGroupTest.cs | ||
DispatchQueueTest.cs | ||
DispatchTests.cs | ||
MutableString.cs | ||
NetworkTest.cs | ||
NotificationCenterTest.cs | ||
OSLogTest.cs | ||
PropertyListTests.cs | ||
ProxyTest.cs | ||
StringTest.cs | ||
UrlTest.cs |