On Jan 5, 2021, Alexandre Oliva <ol...@adacore.com> wrote: > We get occasional failures of 30_threads/future/members/poll.cc > on some platforms whose high resolution clock doesn't have such a high > resolution; wait_for_0 ends up as 0, and then some asserts fail as > intervals measured as longer than zero are tested for less than > several times zero.
> This patch adds some calibration in the iteration count to set a > measurable base time interval with some additional margin. > Regstrapped on x86_64-linux-gnu, and also tested on > x-arm-wrs-vxworks7r2. Ok to install? Ping? https://gcc.gnu.org/pipermail/gcc-patches/2021-January/562796.html > for libstdc++-v3/ChangeLog > * testsuite/30_threads/future/members/poll.cc: Calibrate > iteration count. -- Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/ Free Software Activist GNU Toolchain Engineer Vim, Vi, Voltei pro Emacs -- GNUlius Caesar