]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Cut down 27_io/basic_istream/.../94749.cc for simulators
authorHans-Peter Nilsson <hp@axis.com>
Sat, 10 Jun 2023 03:51:00 +0000 (05:51 +0200)
committerHans-Peter Nilsson <hp@bitrange.com>
Sat, 10 Jun 2023 21:54:34 +0000 (23:54 +0200)
The test wchar_t/94749.cc can take about 10 minutes on some
simulator/host combinations with char/94749.cc at a third of
that time.  The cause is test05 which is quite heavy and
includes wrapping a 32-bit counter.  Run it only for native
setups.

* testsuite/27_io/basic_istream/ignore/wchar_t/94749.cc (main)
[! SIMULATOR_TEST]: Also exclude running test05.
* testsuite/27_io/basic_istream/ignore/char/94749.cc: Ditto.

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

index 6416863983b708bb4ffdbabeba4ddda899c4460a..9160995c05ec8fb17e3a5a9e7a92630d25a5ff85 100644 (file)
@@ -221,8 +221,8 @@ main()
   test02();
   test03();
   test04();
-  test05();
 #ifndef SIMULATOR_TEST
+  test05();
   test06();
 #endif
 }
index 65e0a326c109e40bbf0a43f6dcad3a2ea3ce90ee..a5b9eb71a389bdc5b4a8a2339d59ed6fb952b7d6 100644 (file)
@@ -221,8 +221,8 @@ main()
   test02();
   test03();
   test04();
-  test05();
 #ifndef SIMULATOR_TEST
+  test05();
   test06();
 #endif
 }