gcc/libstdc++-v3/testsuite/30_threads
Alexandre Oliva 3651c1b5c9 calibrate intervals to avoid zero in futures poll test
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.


for  libstdc++-v3/ChangeLog

	* testsuite/30_threads/future/members/poll.cc: Calibrate
	iteration count.
2021-01-14 16:12:22 -03:00
..
async Update copyright years. 2021-01-04 10:26:59 +01:00
barrier libstdc++: Update copyright dates on new files 2021-01-14 14:25:10 +00:00
call_once Update copyright years. 2021-01-04 10:26:59 +01:00
condition_variable Update copyright years. 2021-01-04 10:26:59 +01:00
condition_variable_any Update copyright years. 2021-01-04 10:26:59 +01:00
future calibrate intervals to avoid zero in futures poll test 2021-01-14 16:12:22 -03:00
headers Update copyright years. 2021-01-04 10:26:59 +01:00
jthread Update copyright years. 2021-01-04 10:26:59 +01:00
latch Update copyright years. 2021-01-04 10:26:59 +01:00
lock Update copyright years. 2021-01-04 10:26:59 +01:00
lock_guard Update copyright years. 2021-01-04 10:26:59 +01:00
mutex Update copyright years. 2021-01-04 10:26:59 +01:00
packaged_task Update copyright years. 2021-01-04 10:26:59 +01:00
promise Update copyright years. 2021-01-04 10:26:59 +01:00
recursive_mutex Update copyright years. 2021-01-04 10:26:59 +01:00
recursive_timed_mutex Update copyright years. 2021-01-04 10:26:59 +01:00
scoped_lock Update copyright years. 2021-01-04 10:26:59 +01:00
semaphore Update copyright years. 2021-01-04 10:26:59 +01:00
shared_future Update copyright years. 2021-01-04 10:26:59 +01:00
shared_lock Update copyright years. 2021-01-04 10:26:59 +01:00
shared_mutex Update copyright years. 2021-01-04 10:26:59 +01:00
shared_timed_mutex Update copyright years. 2021-01-04 10:26:59 +01:00
stop_token Update copyright years. 2021-01-04 10:26:59 +01:00
this_thread Update copyright years. 2021-01-04 10:26:59 +01:00
thread Update copyright years. 2021-01-04 10:26:59 +01:00
timed_mutex Update copyright years. 2021-01-04 10:26:59 +01:00
try_lock Update copyright years. 2021-01-04 10:26:59 +01:00
unique_lock Update copyright years. 2021-01-04 10:26:59 +01:00