[gcc(refs/users/aoliva/heads/testme)] libstdc++-v3: testsuite: increase future/members/poll timing tolerance
Alexandre Oliva
aoliva@gcc.gnu.org
Thu May 8 05:26:49 GMT 2025
https://gcc.gnu.org/g:655e5e878ecd84d4652c56e2a165164951eac29c
commit 655e5e878ecd84d4652c56e2a165164951eac29c
Author: Alexandre Oliva <oliva@adacore.com>
Date: Thu May 8 02:18:44 2025 -0300
libstdc++-v3: testsuite: increase future/members/poll timing tolerance
In 30_threads/future/members/poll.c, despite the calibration and the
large tolerance, wait_until_sys_min has occasionally come up to almost
320 times as long as ready. Tolerate that much measurement noise.
for libstdc++-v3/ChangeLog
* testsuite/30_threads/future/members/poll.cc (main): Increase
tolerance for measurement noise.
Diff:
---
libstdc++-v3/testsuite/30_threads/future/members/poll.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libstdc++-v3/testsuite/30_threads/future/members/poll.cc b/libstdc++-v3/testsuite/30_threads/future/members/poll.cc
index 2113cfde70d6..cffe4a331da7 100644
--- a/libstdc++-v3/testsuite/30_threads/future/members/poll.cc
+++ b/libstdc++-v3/testsuite/30_threads/future/members/poll.cc
@@ -154,13 +154,13 @@ int main()
// Polling before ready using wait_until(min) should not be terribly
// slow. We hope for no more than 100x slower, but a little over
- // 100x has been observed, and since the measurements may have a lot
+ // 316x has been observed, and since the measurements may have a lot
// of noise, and increasing the measurement precision through
// additional iterations would make the test run for too long on
// systems with very low clock precision (60Hz clocks are not
// unheard of), we tolerate a lot of error.
- VERIFY( wait_until_sys_min < (ready * 200) );
- VERIFY( wait_until_steady_min < (ready * 200) );
+ VERIFY( wait_until_sys_min < (ready * 320) );
+ VERIFY( wait_until_steady_min < (ready * 320) );
// The following two tests fail with GCC 11, see
// https://gcc.gnu.org/pipermail/libstdc++/2020-November/051422.html
More information about the Libstdc++-cvs
mailing list