-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Follow up cleanup of some unit tests for right click handling. #27152
Follow up cleanup of some unit tests for right click handling. #27152
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am trying to get a frankenstein Xcode bundle package on the engine builders. It's Xcode 12.0 + SDKs/runtimes for iOS 13, iOS 13.5, iOS 14, and iOS 15 beta 2. So it's @available(iOS 15, *)
but the XCTest framework is from Xcode 12. Once the tests are running in a different builder than the framework builds after the recipe refactor, we can switch it to the opposite where it's Xcode 13 beta 2 + older iOS SDKs and runtimes.
Is the purpose of this change make sure it's running on iOS 15 AND has the Xcode 13 XCTest framework embedded?
Right now on Xcode 12.5 there are multiple warnings on this patch:
iPadGestureTests.m:34:45: Undeclared selector 'supportsPointerInteraction'
iPadGestureTests.m:69:21: Undeclared selector 'rightClick'
iPadGestureTests.m:73:16: PerformSelector may cause a leak because its selector is unknown
On Xcode 13 it has one warning:
iPadGestureTests.m:73:16: PerformSelector may cause a leak because its selector is unknown
The warnings are expected. They aren't anything to be concerned about and will disappear after we have xcode 13, I can suppress them if you want. The purpose of the change is to make sure all the code is compiling. That way we can at least ensure the tests compile even if they don't run on CI. Also instead of creating a blanket conditional compilation this has fine grain information about what is being used from the newer SDK and links an issue for its removal when CI is capable and notes the condition whence it can be removed. edit: (also it executes when it can =) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully we can get rid of all this reflection soon...
Some cleanup after an external contribution: #27019
Removed conditional compilation which makes it easier to maintain until we transition to xcode 13 and it makes the steps for removal more apparent and easier to track.
cc @moffatman
Pre-launch Checklist
writing and running engine tests.
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.