This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
libstdc++ tests and targets without iconv
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Thu, 5 Jun 2008 20:09:10 +0000 (UTC)
- Subject: libstdc++ tests and targets without iconv
Some libstdc++ tests such as 17_intro/headers/all.cc include
<ext/codecvt_specializations.h> unconditionally along with all the other
library headers. This header includes <iconv.h> unconditionally. This
fails for targets without this header. This leads to:
FAIL: 17_intro/headers/all.cc (test for excess errors)
FAIL: 17_intro/headers/all_c++200x_compatibility.cc (test for excess errors)
FAIL: 17_intro/headers/all_pedantic_errors.cc (test for excess errors)
FAIL: ext/headers.cc (test for excess errors)
Should these tests use dg-require-iconv or similar so they are disabled on
such targets, should the tests only include
<ext/codecvt_specializations.h> if _GLIBCXX_HAVE_ICONV, or should
<ext/codecvt_specializations.h> condition out its contents unless
_GLIBCXX_HAVE_ICONV?
--
Joseph S. Myers
joseph@codesourcery.com