Skip to content

[ModuleInterface] Use 2-arg form of basename(1) in overlay validation tests. #19943

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

Conversation

graydon
Copy link
Contributor

@graydon graydon commented Oct 18, 2018

(Chery-pick of 9a3b232 from swift-5.0-branch)

A bunch of .swiftinterface files fail to build into their respective .swiftmodules
if you pass -module-name for some foo that is not the correct module name.

The two tests in this change were using a shell expansion that incorrectly picked
the first path component with a period in the name as the module name; this caused
the failures.

Rather than using a shell expansion, this change uses the 2-argument form of
basename(1) (which is POSIX) that also removes a suffix from the basename.

rdar://45347391

… tests.

A bunch of .swiftinterface files fail to build into their respective .swiftmodules
if you pass -module-name <foo> for some foo that is not the correct module name.

The two tests in this change were using a shell expansion that incorrectly picked
the first path component with a period in the name as the module name; this caused
the failures.

Rather than using a shell expansion, this change uses the 2-argument form of
basename(1) (which is POSIX) that also removes a suffix from the basename.
@graydon
Copy link
Contributor Author

graydon commented Oct 18, 2018

@swift-ci please test and merge

@graydon
Copy link
Contributor Author

graydon commented Oct 19, 2018

@swift-ci please test macos platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 77280b0

@graydon
Copy link
Contributor Author

graydon commented Oct 20, 2018

@swift-ci please test macos platform

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