From 8b2c3b5af3da8d06a59276721263c7f326ed64fd Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Wed, 2 Dec 2020 12:34:20 +0000 Subject: [PATCH] libstdc++: Use longer timeout for istream::gcount() overflow tests 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 | 1 + .../testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/94749.cc b/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/94749.cc index 21097c2bff1..63b652dc77b 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/94749.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/ignore/char/94749.cc @@ -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. diff --git a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc b/libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc index 2473588d307..dcf0fee4906 100644 --- a/libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc +++ b/libstdc++-v3/testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc @@ -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. -- 2.30.2