-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix handling of list-typed attributes in Darwin tests. #12538
Merged
andy31415
merged 1 commit into
project-chip:master
from
bzbarsky-apple:darwin-more-test-safety
Dec 3, 2021
Merged
Fix handling of list-typed attributes in Darwin tests. #12538
andy31415
merged 1 commit into
project-chip:master
from
bzbarsky-apple:darwin-more-test-safety
Dec 3, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Two issues here: 1) asTestValue did not handle list attributes properly: it assigned @(0) to the NSArray*. 2) This compiled, because we were not enabling -Werror for the build of the test harness. This fixes both issues. No codegen changes, because we don't actually have any non-excluded writable list-typed attributes yet. Which is good, because they would not have passed CI due to crashing when we try to treat an NSNumber* as NSArray*.
mlepage-google
approved these changes
Dec 3, 2021
PR #12538: Size comparison from c8e8696 to 715c057 Full report (39 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
sagar-apple
approved these changes
Dec 3, 2021
yunhanw-google
approved these changes
Dec 3, 2021
woody-apple
approved these changes
Dec 3, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Two issues here:
asTestValue did not handle list attributes properly: it assigned
@(0) to the NSArray*.
This compiled, because we were not enabling -Werror for the build
of the test harness.
This fixes both issues. No codegen changes, because we don't actually
have any non-excluded writable list-typed attributes yet. Which is
good, because they would not have passed CI due to crashing when we
try to treat an NSNumber* as NSArray*.
Problem
See above.
Change overview
See above.
Testing
Ran darwin tests locally and ensured they compile with the warning exclusions I put in.