Skip to content

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 <rokhinip@apple.com>
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