From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 60D8C3858424; Tue, 9 Nov 2021 15:14:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 60D8C3858424 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-5058] libstdc++: Make test print which random_device tokens work X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: d9ebf0ce0845046cdd0cb40c598072bd1d91362c X-Git-Newrev: 95e8fcd3d50cbf5bf8a211afeafdf640ed86a015 Message-Id: <20211109151408.60D8C3858424@sourceware.org> Date: Tue, 9 Nov 2021 15:14:08 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2021 15:14:08 -0000 https://gcc.gnu.org/g:95e8fcd3d50cbf5bf8a211afeafdf640ed86a015 commit r12-5058-g95e8fcd3d50cbf5bf8a211afeafdf640ed86a015 Author: Jonathan Wakely Date: Tue Nov 9 15:11:11 2021 +0000 libstdc++: Make test print which random_device tokens work libstdc++-v3/ChangeLog: * testsuite/26_numerics/random/random_device/cons/token.cc: Print results of random_device_available checks. Diff: --- .../testsuite/26_numerics/random/random_device/cons/token.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libstdc++-v3/testsuite/26_numerics/random/random_device/cons/token.cc b/libstdc++-v3/testsuite/26_numerics/random/random_device/cons/token.cc index e56afbc9c97..813db73873c 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/random_device/cons/token.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/random_device/cons/token.cc @@ -24,6 +24,7 @@ #include #include +#include #include #include @@ -59,8 +60,14 @@ test03() int count = 0; for (const std::string& token : tokens) { + std::printf("checking std::random_device(\"%s\"):\t", token.c_str()); if (__gnu_test::random_device_available(token)) + { + std::puts("yes"); ++count; + } + else + std::puts("no"); } VERIFY( count != 0 ); }