public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/101866] libstdc++-v3/testsuite/experimental/random/randint.cc fails Date: Wed, 11 Aug 2021 22:52:00 +0000 [thread overview] Message-ID: <bug-101866-4-ybRoFm6O3t@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-101866-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101866 --- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>: https://gcc.gnu.org/g:6e3647c98e474d0f204061859996356e6af5ae8d commit r11-8854-g6e3647c98e474d0f204061859996356e6af5ae8d Author: Jonathan Wakely <jwakely@redhat.com> Date: Wed Aug 11 22:11:19 2021 +0100 libstdc++: Fix test that fails randomly [PR101866] This test assumes that the same sequence of three values cannot occur, which is incorect. It's unlikely, but not impossible. Perform the check in a loop, so that in the unlikely event of an identical sequence, we retry. If the library code is buggy it will keep producing the same sequence and the test will time out. If the code is working correctly then we will usually break out of the loop after one iteration, or very rarely after two or three. libstdc++-v3/ChangeLog: PR libstdc++/101866 * testsuite/experimental/random/randint.cc: Loop and retry if reseed() produces the same sequence. (cherry picked from commit 93f1dbc7cdcc4b31ea4061efb4c2acf2d4f81eb8)
next prev parent reply other threads:[~2021-08-11 22:52 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-11 19:41 [Bug testsuite/101866] New: " seurer at gcc dot gnu.org 2021-08-11 19:46 ` [Bug testsuite/101866] " redi at gcc dot gnu.org 2021-08-11 19:51 ` redi at gcc dot gnu.org 2021-08-11 19:51 ` redi at gcc dot gnu.org 2021-08-11 22:46 ` cvs-commit at gcc dot gnu.org 2021-08-11 22:46 ` redi at gcc dot gnu.org 2021-08-11 22:52 ` cvs-commit at gcc dot gnu.org [this message] 2021-08-11 22:52 ` cvs-commit at gcc dot gnu.org 2021-08-11 22:52 ` cvs-commit at gcc dot gnu.org 2021-08-11 22:54 ` redi at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-101866-4-ybRoFm6O3t@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).