-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Failing tests with 10.0.0 on alpine linux #3433
Comments
glibc, musl and freebsd libc use different rounding policies in their implementation of long double output. test: #include <stdio.h>
int main()
{
auto ld = 0xf.ffffffffffp-3l;
printf("%La\n\n", ld);
printf("%.*La\n\n", 10, ld);
printf("%.*La\n\n", 9, ld);
return 0;
} glibc test (x86-64 ubuntu:latest docker image):
musl test (x86-64 alpine:latest docker image):
FreeBSD 11.3 (x86-64):
@vitaut, I think the test needs to be modified to compare the result with the output of sprintf or a predefined value (glibc based output). |
Fix: #3434 |
yes that passes on alpine with that patch: |
Closing, thanks @phprus for the fix and @a16bitsysop for reporting the issue. |
When running the tests for fmt 10.0.0 on alpine linux edge with gcc 12.2.1 some tests fail for x86_64 and x86, but all tests pass for ppc64le and s390x.
The failure is the same for both:
Full pipeline here:
https://gitlab.alpinelinux.org/a16bitsysop/aports/-/jobs/1031079
The text was updated successfully, but these errors were encountered: