Skip to content

Move conditional compilation directive inside tests. #170

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 1 commit into from
Apr 1, 2020

Conversation

allevato
Copy link
Member

@allevato allevato commented Apr 1, 2020

This ensures that the test function always exists, even if the
symbol is not defined, so that --generate-linuxmain contains
the symbol in both cases. When the symbol is undefined, the
empty test will vacuously succeed.

This ensures that the test function always exists, even if the
symbol is not defined, so that `--generate-linuxmain` contains
the symbol in both cases. When the symbol is undefined, the
empty test will vacuously succeed.
@allevato
Copy link
Member Author

allevato commented Apr 1, 2020

cc @dylansturg

Copy link
Contributor

@dylansturg dylansturg left a comment

Choose a reason for hiding this comment

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

Oops. I didn't even verify whether those test methods didn't exist when I updated the generated test file.

@allevato allevato merged commit f40ef5f into swiftlang:master Apr 1, 2020
@allevato allevato deleted the fix-diff-tests branch April 1, 2020 22:15
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