[Tests] Fix CALayer tests on Sonoma.#19450
Conversation
Sonoma is picker now with the way we create a CoreGraphics.CGImage, meaning that if we do not pass the correct flags, the OS will return a nil object (might be a good idea to move away from constructors to factory methods). Before this change we would get the following errors: * CAKeyFrameAnimation_ValuesTests: System.Exception : Could not initialize an instance of the type 'CoreGraphics.CGImage': handle is null. It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false. * CALayer_ValuesTests: System.Exception : Could not initialize an instance of the type 'CoreGraphics.CGImage': handle is null. It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
🔥 [PR Build] Build failed 🔥Build failed for the job 'Build macOS tests' Pipeline on Agent |
1 similar comment
🔥 [PR Build] Build failed 🔥Build failed for the job 'Build macOS tests' Pipeline on Agent |
💻 [CI Build] Windows Integration Tests passed 💻✅ All Windows Integration Tests passed. Pipeline on Agent |
📚 [PR Build] Artifacts 📚Packages generatedView packagesPipeline on Agent |
✅ API diff for current PR / commitLegacy Xamarin (No breaking changes)
NET (empty diffs)
✅ API diff vs stableLegacy Xamarin (No breaking changes).NET (No breaking changes)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
🚀 [CI Build] Test results 🚀Test results✅ All tests passed on VSTS: simulator tests. 🎉 All 235 tests passed 🎉 Tests counts✅ bcl: All 69 tests passed. Html Report (VSDrops) Download Pipeline on Agent |
💻 [PR Build] Tests on macOS M1 - Mac Ventura (13.0) passed 💻✅ All tests on macOS M1 - Mac Ventura (13.0) passed. Pipeline on Agent |
💻 [PR Build] Tests on macOS M1 - Mac Big Sur (11.5) passed 💻✅ All tests on macOS M1 - Mac Big Sur (11.5) passed. Pipeline on Agent |
Sonoma is pickier now with the way we create a CoreGraphics.CGImage, meaning that if we do not pass the correct flags, the OS will return a nil object (might be a good idea to move away from constructors to factory methods).
Before this change we would get the following errors:
CAKeyFrameAnimation_ValuesTests: System.Exception : Could not initialize an instance of the type 'CoreGraphics.CGImage': handle is null. It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
CALayer_ValuesTests: System.Exception : Could not initialize an instance of the type 'CoreGraphics.CGImage': handle is null. It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.