-
Notifications
You must be signed in to change notification settings - Fork 10.5k
SourceKit: use std::chrono
in unittests
#22058
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
CC: @benlangmuir @akyrtzi |
@swift-ci please test |
The comment implies that you're changing to not use |
😒 I are dum-dums. Yes, that should be a |
@swift-ci please test |
Build failed |
Build failed |
Build failed |
Build failed |
@swift-ci please test |
Build failed |
Build failed |
Hmm, could we have an issue because we're building with |
Hmm, okay, well, thats easy to deal with ( |
Rather than using the `usleep` function which is both deprecated and non-portable (does not exist on Windows), prefer using the C++11 chrono library for the sleep. This also allows us to use the UDL to simplify the code rather than relying on the comments. NFCI
Build failed |
@swift-ci please test |
@benlangmuir any concerns with this now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Rather than using the
usleep
function which is both deprecated andnon-portable (does not exist on Windows), prefer using the C++11 chrono library
for the sleep. This also allows us to use the UDL to simplify the code rather
than relying on the comments. NFCI
Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.
Resolves SR-NNNN.