-
Notifications
You must be signed in to change notification settings - Fork 279
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
Added tests for NSHashTable/NSMapTable weak objects support #80
Conversation
Looks like these issues are not specific to our setup. Any thoughts on why these tests might be failing? Unfortunately I don’t have a way to fully debug the issues on Android... |
Looks like #84 will be fixing these tests. I will rebase once it’s merged. |
Ah, this branch still fails with the gcc runtime, where |
Good catch, thanks. I tried using |
You'll need to include |
29f8661
to
d8565b0
Compare
Thanks @ngrewe! I’ve updated the tests to include capabilities.h and use Looking at the |
Yeah, that's probably functionally okay, since you can't compile libobjc2 without ARC support, it might just set a bit of a bad precedent for people looking at how to use the capabilities interface in libobjc2. |
I wrote these tests in order to track down the issues we’re seeing with weak pointer support in NSHashTable and NSMapTable that I outlined on the mailing list:
https://lists.gnu.org/archive/html/discuss-gnustep/2019-10/msg00008.html
The tests pass when run against Apple’s Foundation, but are failing for me when run on Android. I’d like to understand whether other configurations are affected as well (e.g. the CI test builds).
If they are failing on the CI I’d appreciate any fixes or insights into why that is the case. If they pass, please feel free to merge – we will then know to look for the issue in our toolchain configuration.