summaryrefslogtreecommitdiffstats
path: root/libcxx/test/input.output/file.streams
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2011-09-21 14:59:10 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2011-09-21 14:59:10 +0000
commit71850c961d86d1cb657a83b98241ee5c35cda21c (patch)
treec7662d3345a878ed64f40a4b40aeac089887906b /libcxx/test/input.output/file.streams
parentb25f615c588edb959545f551a25e168aafacfbfa (diff)
downloadbcm5719-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.cpp24
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()
OpenPOWER on IntegriCloud