libstdc++: Set dg-timeout-factor for some slow tests
authorJonathan Wakely <jwakely@redhat.com>
Thu, 26 Nov 2020 15:16:25 +0000 (15:16 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 26 Nov 2020 16:15:53 +0000 (16:15 +0000)
These tests are very, very slow to compile. If the testsuite is run with
a low tool_timeout value they are likely to fail. By adding a
multiplication factor to those tests, it's still possible to use a low
timeout without spurious failures.

libstdc++-v3/ChangeLog:

* testsuite/28_regex/algorithms/regex_match/basic/string_range_01_03.cc:
Add dg-timeout-factor directive.
* testsuite/28_regex/algorithms/regex_match/cstring_bracket_01.cc:
Likewise.
* testsuite/28_regex/algorithms/regex_match/ecma/char/backref.cc:
Likewise.
* testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/63199.cc:
Likewise.
* testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/anymatcher.cc:
Likewise.
* testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/cjk_match.cc:
Likewise.
* testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/hex.cc:
Likewise.
* testsuite/28_regex/algorithms/regex_match/extended/wstring_locale.cc:
Likewise.
* testsuite/28_regex/algorithms/regex_search/61720.cc: Likewise.
* testsuite/28_regex/algorithms/regex_search/ecma/assertion.cc:
Likewise.
* testsuite/28_regex/algorithms/regex_search/ecma/string_01.cc:
Likewise.
* testsuite/28_regex/basic_regex/ctors/deduction.cc: Likewise.

12 files changed:
libstdc++-v3/testsuite/28_regex/algorithms/regex_match/basic/string_range_01_03.cc
libstdc++-v3/testsuite/28_regex/algorithms/regex_match/cstring_bracket_01.cc
libstdc++-v3/testsuite/28_regex/algorithms/regex_match/ecma/char/backref.cc
libstdc++-v3/testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/63199.cc
libstdc++-v3/testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/anymatcher.cc
libstdc++-v3/testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/cjk_match.cc
libstdc++-v3/testsuite/28_regex/algorithms/regex_match/ecma/wchar_t/hex.cc
libstdc++-v3/testsuite/28_regex/algorithms/regex_match/extended/wstring_locale.cc
libstdc++-v3/testsuite/28_regex/algorithms/regex_search/61720.cc
libstdc++-v3/testsuite/28_regex/algorithms/regex_search/ecma/assertion.cc
libstdc++-v3/testsuite/28_regex/algorithms/regex_search/ecma/string_01.cc
libstdc++-v3/testsuite/28_regex/basic_regex/ctors/deduction.cc

index f787f57c1fff8c514a81874702e9491b18a08be4..0809716f61d20be635182f1a12dd0c7a9a2209d6 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-timeout-factor 2 }
 
 //
 // 2010-06-16  Stephen M. Webb <stephen.webb@bregmasoft.ca>
@@ -55,7 +56,7 @@ test01()
 
 int
 main()
-{ 
+{
   test01();
   return 0;
 }
index fe076c707c37335b0e517576e06b55eb3d536369..6bf6a7737b7b21239519bc117417841ab95d3e13 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-timeout-factor 2 }
 
 //
 // 2013-08-01  Tim Shen <timshen91@gmail.com>
index ac08a7dff0d7d1fd33019307b9c9f330a0741e4e..8fb320f811e1da17632048dfce38f1ed1dfe4885 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-timeout-factor 2 }
 
 //
 // 2013-09-02  Tim Shen <timshen91@gmail.com>
index 1ea076e97b7e062fc3ea563ea441ab7eaf6416ea..e2b906d467b65e0be01b108be1e63f94f32a5951 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-timeout-factor 3 }
 
 //
 // Copyright (C) 2014-2020 Free Software Foundation, Inc.
index 590a5d3c97e5b84675d8e40cca1076ff16b38b66..49444c476fe276e6b1cda4452afe5019d379a7ff 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-timeout-factor 3 }
 
 //
 // 2013-09-02  Tim Shen <timshen91@gmail.com>
index 81ee616b211e817dcb19064a4e1987cf76fa0d62..58fdd6e12a3bc4d7ede6f828ea8a98d89d12fc1f 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-timeout-factor 3 }
 
 //
 // 2013-10-18  Tim Shen <timshen91@gmail.com>
index 765bfff072db38a62da753281f60f404ce55d4a8..b8e94efa7b01fd55d0aacfc27c2d2b2f54b47e9a 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-timeout-factor 2 }
 
 //
 // 2013-09-02  Tim Shen <timshen91@gmail.com>
index 483a4a6f724fae28e30bed253faae8fd5b0c6344..33867e5057a84240278e0df2ef9f17c232471216 100644 (file)
@@ -1,5 +1,6 @@
 // { dg-do run { target c++11 } }
 // { dg-require-namedlocale "de_DE.UTF-8" }
+// { dg-timeout-factor 3 }
 
 //
 // 2013-08-29  Tim Shen <timshen91@gmail.com>
index f4126fe3fca2ed6145c63af92a56095981e6fea5..169527b16995576fd50666a68db04a5f866d79e8 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-timeout-factor 2 }
 
 //
 // Copyright (C) 2014-2020 Free Software Foundation, Inc.
index ab80804a7fe58d0f372ef61da014c464054bd7dc..bf4207e60b13fc0cda68adc95b707d68f7d55fd6 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-timeout-factor 2 }
 
 //
 // 2013-09-14  Tim Shen <timshen91@gmail.com>
index 456b8763b7ca4a786f6d35f4030891d5da9c6083..f69e6a6e98cfc884ad0e239ba34fe222259a2098 100644 (file)
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-timeout-factor 2 }
 
 //
 // 2013-08-26  Tim Shen <timshen91@gmail.com>
index 6fab70c0ff5891ea791c8ff181635127823adc16..88112af3d4af8650c60a54123c8b348ddd7c3f72 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
+// { dg-timeout-factor 3 }
 
 #include <regex>
 #include <testsuite_iterators.h>