calibrate intervals to avoid zero in futures poll test
Alexandre Oliva
oliva@adacore.com
Wed Jan 13 17:00:49 GMT 2021
On Jan 5, 2021, Alexandre Oliva <oliva@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
More information about the Libstdc++
mailing list