Skip to content
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

Fix alarm(0) failure on mingw32 #1328

Merged
merged 1 commit into from
Jan 29, 2018

Conversation

mpg
Copy link
Contributor

@mpg mpg commented Jan 29, 2018

Description

A new test for mbedtls_timing_alarm(0) was introduced in PR 1136, which also
fixed it on Unix. Apparently test results on MinGW were not checked at that
point, so we missed that this new test was also failing on this platform.

This PR fixes the function in order to make the new test pass, in a way similar to the fix introduce in by #1136 for Unix.

Status

READY

Requires Backporting

Yes

[x] Mbed TLS 2.1 #1329
[x] Mbed TLS 1.3 #1330

A new test for mbedtls_timing_alarm(0) was introduced in PR 1136, which also
fixed it on Unix. Apparently test results on MinGW were not checked at that
point, so we missed that this new test was also failing on this platform.
@mpg mpg added bug mbed TLS team needs-review Every commit must be reviewed by at least two team members, labels Jan 29, 2018
@mazimkhan
Copy link

@mpg The description does not describe what was the problem with mingw build and how this change fixes it. Without this info the change only looks like an optimisation. The Sleep function would still return immediately. But it would not be accurate.

@mpg
Copy link
Contributor Author

mpg commented Jan 29, 2018

Note: the test passed on a mingw32 builder (see internal tracker for details).

@Patater Patater added the approved Design and code approved - may be waiting for CI or backports label Jan 29, 2018
@Patater Patater merged commit 5405962 into Mbed-TLS:development Jan 29, 2018
@mpg mpg deleted the iotssl-2007-alarm0-mingw branch September 10, 2019 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Design and code approved - may be waiting for CI or backports bug needs-review Every commit must be reviewed by at least two team members,
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants