Skip to content

[Tests] Fix RemoteMirror test to work when DYLD_LIBRARY_PATH is set. #38960

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

Merged
merged 2 commits into from
Aug 24, 2021

Conversation

al45tair
Copy link
Contributor

Changed the RemoteMirror test to work around DYLD_LIBRARY_PATH when it's given an absolute path; when it's called from CI, we really want it to load the libswiftRemoteMirror.dylib that we just built, not the system one, which is what happens for some of the builders.

rdar://82124292

Changed the RemoteMirror test to work around DYLD_LIBRARY_PATH when it's
given an absolute path; when it's called from CI, we really want it to
load the libswiftRemoteMirror.dylib that we just built, *not* the system
one, which is what happens for some of the builders.

rdar://82124292
@al45tair
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - d39e069

@al45tair
Copy link
Contributor Author

@swift-ci Please test

1 similar comment
@al45tair
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - d39e069

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - d39e069

@al45tair
Copy link
Contributor Author

@swift-ci Please test

@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - d39e069

@al45tair al45tair requested a review from mikeash August 23, 2021 12:58
Replaced dirname() as the man page says (alarmingly) that it might write to
the input string.  Also use asprintf() to build the new value for
DYLD_LIBRARY_PATH.
@al45tair
Copy link
Contributor Author

@swift-ci Please test

@al45tair
Copy link
Contributor Author

@swift-ci Please smoke test

@al45tair al45tair merged commit 7e001ec into swiftlang:main Aug 24, 2021
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.

3 participants