libstdc++: XFAIL tests that depends on RTTI
authorJonathan Wakely <jwakely@redhat.com>
Fri, 12 Feb 2021 11:30:38 +0000 (11:30 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 12 Feb 2021 14:30:13 +0000 (14:30 +0000)
commitc4ece1d96a105f51d7999b7afe9340d582731f5d
treea49d76452a2c7337ff670c6297b7170c5f3770c1
parent0bd242ec5aeffd1fb2a3ee16a2c69afae2aff2ce
libstdc++: XFAIL tests that depends on RTTI

The std::emit_on_flush manipulator depends on dynamic_cast, so fails
without RTTI.

The std::async code can't catch a forced_unwind exception when RTTI is
disabled, so it can't rethrow it either, and the test aborts.

libstdc++-v3/ChangeLog:

* testsuite/27_io/basic_ostream/emit/1.cc: Expect test to fail
if -fno-rtti is used.
* testsuite/30_threads/async/forced_unwind.cc: Expect test
to abort if -fno-rtti is used.
libstdc++-v3/testsuite/27_io/basic_ostream/emit/1.cc
libstdc++-v3/testsuite/30_threads/async/forced_unwind.cc