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
barrier libstdc++: Update copyright dates on new files 2021-01-14 14:25:10 +00:00
call_once
condition_variable
condition_variable_any
future calibrate intervals to avoid zero in futures poll test 2021-01-14 16:12:22 -03:00
headers
jthread
latch
lock
lock_guard
mutex
packaged_task
promise
recursive_mutex
recursive_timed_mutex
scoped_lock
semaphore
shared_future
shared_lock
shared_mutex
shared_timed_mutex
stop_token
this_thread
thread
timed_mutex
try_lock
unique_lock