diff options
author | David Chisnall <csdavec@swan.ac.uk> | 2011-09-21 14:59:10 +0000 |
---|---|---|
committer | David Chisnall <csdavec@swan.ac.uk> | 2011-09-21 14:59:10 +0000 |
commit | 71850c961d86d1cb657a83b98241ee5c35cda21c (patch) | |
tree | c7662d3345a878ed64f40a4b40aeac089887906b /libcxx/test/input.output/file.streams | |
parent | b25f615c588edb959545f551a25e168aafacfbfa (diff) | |
download | bcm5719-llvm-71850c961d86d1cb657a83b98241ee5c35cda21c.tar.gz bcm5719-llvm-71850c961d86d1cb657a83b98241ee5c35cda21c.zip |
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.
llvm-svn: 140252
Diffstat (limited to 'libcxx/test/input.output/file.streams')
-rw-r--r-- | libcxx/test/input.output/file.streams/c.files/cstdio.pass.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libcxx/test/input.output/file.streams/c.files/cstdio.pass.cpp b/libcxx/test/input.output/file.streams/c.files/cstdio.pass.cpp index 9b8212150e4..367fa2c4db5 100644 --- a/libcxx/test/input.output/file.streams/c.files/cstdio.pass.cpp +++ b/libcxx/test/input.output/file.streams/c.files/cstdio.pass.cpp @@ -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() |