cxx/test/std/localization
Ed Schouten 3f86893b6c Don't let time_put test use implementation dependent constructs.
The time_put test doesn't seem to work on Linux and CloudABI. For Linux
we already have an XFAIL. Closer inspection seems to reveal that this
test does not pass for a couple of reasons.

First of all, the tm_yday field is set to an invalid value. The
strftime() function doesn't behave consistently across platforms in case
the values in the tm structure are incoherent. Fix up this field to have
the value 121, which corresponds with tm_mday, tm_mon and tm_year. This
of course affects the output of time_put for some modifiers, so update
the tests accordingly.

Second, some of the tests actually use modifiers that are only present
on BSD derived systems. They are not part of the C standard/POSIX.
Simply remove them.

Finally, some of the tests actually use invalid modifiers, causing a
malformed format string to be passed to strftime(). Remove these tests
as well.

Differential Revision:	http://reviews.llvm.org/D8349


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@233262 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-26 08:38:00 +00:00
..
c.locales Move test into test/std subdirectory. 2014-12-20 01:40:03 +00:00
locale.categories Don't let time_put test use implementation dependent constructs. 2015-03-26 08:38:00 +00:00
locale.stdcvt [libcxx] Consolidate new/delete replacement in tests and disable it when using sanitizers. 2014-12-22 22:38:59 +00:00
locale.syn Move test into test/std subdirectory. 2014-12-20 01:40:03 +00:00
locales Add option to disable access to the global filesystem namespace. 2015-03-12 15:44:39 +00:00
localization.general Move test into test/std subdirectory. 2014-12-20 01:40:03 +00:00
version.pass.cpp Move test into test/std subdirectory. 2014-12-20 01:40:03 +00:00