Remove locale tests that depend on enviroment variables.
authorEric Fiselier <eric@efcs.ca>
Mon, 18 Jul 2016 06:15:55 +0000 (06:15 +0000)
committerEric Fiselier <eric@efcs.ca>
Mon, 18 Jul 2016 06:15:55 +0000 (06:15 +0000)
commit197228927a84a15e7ca9d30ddc37113078239501
tree8800de0bed8df06822b6a7ab49aca9bb62dba83b
parent16a0744955db52abfff7c2298a5c9649949a20f6
Remove locale tests that depend on enviroment variables.

Constructing a std::locale object from an empty string selects the language
from the current environment variables. If the environment variables name
a locale that doesn't exist, or isn't installed, then the construction of
facets using that locale may throw.

This patch removes tests that use 'std::locale l("")'.

The optimal solution would be to manually set the environment variables
in the test. Unfortunately there is no portable way to do this.

llvm-svn: 275772
libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/types.pass.cpp