Skip to content
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

[lldb] Add an expression evaluation test for modules built with ... #9809

Open
wants to merge 2 commits into
base: stable/20240723
Choose a base branch
from

Conversation

augusto2112
Copy link

-enable-testing and -enable-library-evolution

-enable-testing affects the visibility of types, which together with -enable-library-evolution may cause the compiler embedded in LLDB to generate incorrect code on expression evaluation.

@augusto2112 augusto2112 requested a review from a team as a code owner January 8, 2025 02:03
@augusto2112
Copy link
Author

swiftlang/swift#78486
@swift-ci test

@augusto2112
Copy link
Author

swiftlang/swift#78486
@swift-ci test

-enable-testing and -enable-library-evolution

-enable-testing affects the visibility of types, which together with
-enable-library-evolution may cause the compiler embedded in LLDB to
generate incorrect code on expression evaluation.
Add more resilience tests with a public superclass that is generic and
inherits from an objc type and a non-public subclass with a property we
access on the test. The tests vary in which modules the types exist (one
resilient executable, one resilient library and non resilient
executable, 2 resilient libraries and one resilient executable).
@augusto2112
Copy link
Author

swiftlang/swift#78728
@swift-ci test

1 similar comment
@augusto2112
Copy link
Author

swiftlang/swift#78728
@swift-ci test

class TestSwiftResilienceSuperclass(TestBase):
@skipUnlessDarwin
@swiftTest
def test(self):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def test(self):
def test(self):
"""
This test tests that ...
"""

Copy link

@adrian-prantl adrian-prantl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, but the tests really need some comments explaining what exactly is being tested here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants