-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 test code to can be built on alpine #4969
Fix test code to can be built on alpine #4969
Conversation
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.
The obvious concern with this change is portability. library/net_sockets.c
uses fcntl.h
. So this reconciles the tests with the library. Besides sys/fcntl.h
is long obsolete (for example FreeBSD switch to fcntl.h
between 1.1 and 2.0, i.e. in the early 1990s). Hence, approved, thanks for fixing this.
Since this is a bug fix, even if it's only in the tests, I think this should have a changelog entry. Please create a file in ChangeLog.d
(see the readme)) containing something like “Don't use the obsolete header path sys/fcntl.h in unit tests.”
Please make a similar patch to the long-time support branches: development_2.x
and mbedtls-2.16
.
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.
Added Change.
In mbedtls-2.16 this test does not exist.
Signed-off-by: joseph <joseph@jc-lab.net>
7db24cd
to
6113af6
Compare
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
Backport 2.x: Fix test code to can be built on alpine #4969
Signed-off-by: joseph joseph@jc-lab.net
Description
When build via cmake on alpine linux, cause the following error: This PR fix the error.
Status
READY
Requires Backporting
NO
Migrations
If there is any API change, what's the incentive and logic for it.
NO
Steps to test or reproduce
Before
https://github.com/jclab-joseph/mbedtls/actions/runs/1264843158
The build succeeds in ubuntu but fails in alpine.
After
https://github.com/jclab-joseph/mbedtls/actions/runs/1264845085
Both ubuntu and alpine builds succeed.