More fixes to the tests. Add UTF-8 encoding to all locales that don't specify one. Undefine some stdio.h macros that break the tests.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@140252 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Chisnall
2011-09-21 14:59:10 +00:00
parent a824f53600
commit db2e99f852
7 changed files with 43 additions and 19 deletions

View File

@@ -76,6 +76,30 @@
#error stdout not defined
#endif
// As an optimisation, these may be defined as macros in the C header. We want
// to check the functions, not the macros.
#ifdef puts
#undef puts
#endif
#ifdef putc
#undef putc
#endif
#ifdef getc
#undef getc
#endif
#ifdef putchar
#undef putchar
#endif
#ifdef clearerr
#undef clearerr
#endif
#ifdef feof
#undef feof
#endif
#ifdef ferror
#undef ferror
#endif
#include <cstdarg>
int main()