libstdc++: Use longer timeout for istream::gcount() overflow tests
authorJonathan Wakely <jwakely@redhat.com>
Wed, 2 Dec 2020 12:34:20 +0000 (12:34 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 2 Dec 2020 12:34:20 +0000 (12:34 +0000)
On targets with 32-bit poitners these tests do extra work, so give them
longer to run.

libstdc++-v3/ChangeLog:

* testsuite/27_io/basic_istream/ignore/char/94749.cc: Add
dg-timeout-factor for ilp32 targets.
* testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc:
Likewise.

libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/94749.cc
libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc

index 21097c2bff120fd469e17a13645f9643f1c50969..63b652dc77b06b11f84f41135f335c3d8cd89479 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do run }
 // { dg-options "-DSIMULATOR_TEST" { target simulator } }
+// { dg-timeout-factor 2 { target ilp32 } }
 
 // PR libstdc++/94749
 // basic_istream::ignore(n, c) discards n+1 if next character is equal to c.
index 2473588d3075902b205d5e0e90256f57ed66cd55..dcf0fee4906cef04f1308c9455aedc333225a43c 100644 (file)
@@ -17,6 +17,7 @@
 
 // { dg-do run }
 // { dg-options "-DSIMULATOR_TEST" { target simulator } }
+// { dg-timeout-factor 2 { target ilp32 } }
 
 // PR libstdc++/94749
 // basic_istream::ignore(n, c) discards n+1 if next character is equal to c.