See https://gitlab.com/procps-ng/procps/-/issues/271 diff -u -r procps-ng-4.0.3.alt/src/tests/test_strtod_nol.c procps-ng-4.0.3/src/tests/test_strtod_nol.c --- procps-ng-4.0.3.alt/src/tests/test_strtod_nol.c 2022-12-18 23:44:18.383960834 +0100 +++ procps-ng-4.0.3/src/tests/test_strtod_nol.c 2023-03-20 16:52:26.680032658 +0100 @@ -1,6 +1,7 @@ #include #include +#include #include "strutils.h" struct strtod_tests { @@ -25,6 +26,11 @@ {NULL, 0.0} }; +#define EPSILON 1.0 // Really not trying for precision here +int dequal(const double d1, const double d2) +{ + return fabs(d1-d2) < EPSILON; +} int main(int argc, char *argv[]) @@ -33,8 +39,8 @@ double val; for(i=0; tests[i].string != NULL; i++) { - if(strtod_nol_or_err(tests[i].string, "Cannot parse number") != - tests[i].result) { + if(!dequal (strtod_nol_or_err(tests[i].string, "Cannot parse number"), + tests[i].result)) { fprintf(stderr, "FAIL: strtod_nol_or_err(\"%s\") != %f\n", tests[i].string, tests[i].result); return EXIT_FAILURE; ref='/guix/refs/?id=738c0d96215325419872dea92042c9106bddb03a'>refslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-04-04gnu: mingw: Add mingw-w64 reproducibility patches.Carl Dong
These patches were originally found at the debian mingw-w64 team's mingw-w64 repo, and should improve the reproducibility of our mingw-w64 toolchain. * gnu/packages/patches/mingw-w64-dlltool-temp-prefix.patch: New file. * gnu/packages/patches/mingw-w64-reproducible-gendef.patch: New file. * gnu/local.mk (dist_patch_DATA): Update accordingly. * gnu/packages/mingw.scm (make-mingw-w64): Apply patches.
2020-03-12gnu: mingw-w64-*: Update to 7.0.0.Carl Dong
* gnu/packages/mingw.scm (make-mingw-w64): Update to 7.0.0.