From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id A577B386F42D; Tue, 15 Dec 2020 15:40:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A577B386F42D 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 r11-6080] libstdc++: Increase timeout for tests in debug mode X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: f072d1021e3e80539afe58ba0019fafa9a0bb7a6 X-Git-Newrev: e831ad4dab9d693885a5654d49e8f219e53eaee1 Message-Id: <20201215154058.A577B386F42D@sourceware.org> Date: Tue, 15 Dec 2020 15:40:58 +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, 15 Dec 2020 15:40:58 -0000 https://gcc.gnu.org/g:e831ad4dab9d693885a5654d49e8f219e53eaee1 commit r11-6080-ge831ad4dab9d693885a5654d49e8f219e53eaee1 Author: Jonathan Wakely Date: Tue Dec 15 15:39:58 2020 +0000 libstdc++: Increase timeout for tests in debug mode These tests FAIL when testing debug mode with a small tool_timeout value. Give them a longer relative timeout. libstdc++-v3/ChangeLog: * testsuite/25_algorithms/lexicographical_compare/deque_iterators/1.cc: Add dg-timeout-factor directive. * testsuite/ext/pb_ds/regression/tree_map_rand_debug.cc: Increase timeout factor from 2.0 to 3.0. * testsuite/ext/pb_ds/regression/tree_set_rand_debug.cc: Likewise. * testsuite/lib/libstdc++.exp (check_effective_target_debug-mode): Define "debug-mode" as an effective-target keyword. Diff: --- .../25_algorithms/lexicographical_compare/deque_iterators/1.cc | 2 ++ libstdc++-v3/testsuite/ext/pb_ds/regression/tree_map_rand_debug.cc | 2 +- libstdc++-v3/testsuite/ext/pb_ds/regression/tree_set_rand_debug.cc | 2 +- libstdc++-v3/testsuite/lib/libstdc++.exp | 5 +++++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/deque_iterators/1.cc b/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/deque_iterators/1.cc index 14a75358db4..65aafdcf03d 100644 --- a/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/deque_iterators/1.cc +++ b/libstdc++-v3/testsuite/25_algorithms/lexicographical_compare/deque_iterators/1.cc @@ -15,6 +15,8 @@ // with this library; see the file COPYING3. If not see // . +// { dg-timeout-factor 2 { target debug-mode } } + #include #include #include diff --git a/libstdc++-v3/testsuite/ext/pb_ds/regression/tree_map_rand_debug.cc b/libstdc++-v3/testsuite/ext/pb_ds/regression/tree_map_rand_debug.cc index 627f3864347..411a906d598 100644 --- a/libstdc++-v3/testsuite/ext/pb_ds/regression/tree_map_rand_debug.cc +++ b/libstdc++-v3/testsuite/ext/pb_ds/regression/tree_map_rand_debug.cc @@ -2,7 +2,7 @@ // { dg-require-time "" } // This can take long on simulators, timing out the test. // { dg-options "-DITERATIONS=5" { target simulator } } -// { dg-timeout-factor 2.0 } +// { dg-timeout-factor 3.0 } // -*- C++ -*- diff --git a/libstdc++-v3/testsuite/ext/pb_ds/regression/tree_set_rand_debug.cc b/libstdc++-v3/testsuite/ext/pb_ds/regression/tree_set_rand_debug.cc index cd7b1118e26..dd1b45c3491 100644 --- a/libstdc++-v3/testsuite/ext/pb_ds/regression/tree_set_rand_debug.cc +++ b/libstdc++-v3/testsuite/ext/pb_ds/regression/tree_set_rand_debug.cc @@ -2,7 +2,7 @@ // { dg-require-time "" } // This can take long on simulators, timing out the test. // { dg-options "-DITERATIONS=5" { target simulator } } -// { dg-timeout-factor 2.0 } +// { dg-timeout-factor 3.0 } // -*- C++ -*- diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 35817a8870a..aeb881f91a6 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -1004,6 +1004,11 @@ proc check_v3_target_debug_mode { } { }] } +# Define "debug-mode" as an effective-target keyword. +proc check_effective_target_debug-mode { } { + return [check_v3_target_debug_mode] +} + # Return 1 if normal mode is active, 0 otherwise. # i.e. neither Debug Mode nor Parallel Mode is active. proc check_v3_target_normal_mode { } {