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

[Dexter] Fix test failures on greendragon #66299

Merged
merged 2 commits into from
Sep 14, 2023

Conversation

rastogishubham
Copy link
Contributor

The issue with these test failures is that the dSYM was not being found by lldb, which is why setting breakpoints was failing and lldb quit without performing any steps. This change copies the dSYM to the same temp directory that the executable is copied to.

The issue with these test failures is that the dSYM was not being found
by lldb, which is why setting breakpoints was failing and lldb quit
without performing any steps. This change copies the dSYM to the same
temp directory that the executeable is copied to.
Copy link
Contributor

@SLTozer SLTozer left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for investigating this, this explains why I couldn't reproduce the error on other platforms!

@@ -217,6 +218,9 @@ def _run_test(self, test_name):
"""
try:
if self.context.options.binary:
if platform.system() == 'Darwin' and os.path.exists(self.context.options.binary + '.dSYM'):
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be a good idea to add a command line option to manually specify the location of the dsym file, but I'm happy to submit that as an extra patch afterwards.

@rastogishubham
Copy link
Contributor Author

@SLTozer Sounds good, I will merge this because greendragon is unstable, and we are seeing XPASSES, and then we can make the dsym location configurable in a future patch!

@rastogishubham rastogishubham merged commit e6cc7b7 into llvm:main Sep 14, 2023
2 of 3 checks passed
ZijunZhaoCCK pushed a commit to ZijunZhaoCCK/llvm-project that referenced this pull request Sep 19, 2023
The issue with these test failures is that the dSYM was not being found
by lldb, which is why setting breakpoints was failing and lldb quit
without performing any steps. This change copies the dSYM to the same
temp directory that the executable is copied to.
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.

None yet

3 participants