Skip to content

build: migrate to standard mechanism for testing #518

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
Sep 17, 2019

Conversation

compnerd
Copy link
Member

Use CTest module rather than the custom ENABLE_TESTING option. The
inclusion of CTest will default BUILD_TESTING to true, which
preserves the existing behaviour.

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@ktopley-apple how would you prefer to handle this? Fix the warning or silence these warnings (since it seems that dispatch currently does quite a bit of tweaking to the warning flags):

swift-corelibs-libdispatch/tests/dispatch_context_for_key.c:34:25: error: initializing 'char *' with an expression of type 'const char [13]' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

@ktopley-apple
Copy link
Contributor

@ktopley-apple how would you prefer to handle this? Fix the warning or silence these warnings (since it seems that dispatch currently does quite a bit of tweaking to the warning flags):

swift-corelibs-libdispatch/tests/dispatch_context_for_key.c:34:25: error: initializing 'char *' with an expression of type 'const char [13]' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]

I would fix the warning with a cast.

@compnerd
Copy link
Member Author

@swift-ci please test

Use `CTest` module rather than the custom `ENABLE_TESTING` option.  The
inclusion of `CTest` will default `BUILD_TESTING` to true, which
preserves the existing behaviour.
@compnerd
Copy link
Member Author

@swift-ci please test

Preserve the const-ness of the string constants as identified by the newer
compiler.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@ktopley-apple - okay to merge?

@ktopley-apple ktopley-apple merged commit ab8a151 into swiftlang:master Sep 17, 2019
@compnerd compnerd deleted the enable-testing branch September 17, 2019 16:27
rokhinip pushed a commit that referenced this pull request Nov 5, 2021
build: migrate to standard mechanism for testing
Signed-off-by: Rokhini Prabhu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants