Don't run the locale tests when locales aren't supported

[SVN r23470]
This commit is contained in:
Douglas Gregor
2004-07-12 23:02:03 +00:00
parent 73c545cd2c
commit be2bae0a14

View File

@@ -8,7 +8,10 @@
#include <sstream> #include <sstream>
#include <string> #include <string>
#include <iostream> #include <iostream>
#ifndef BOOST_NO_STD_LOCALE
# include <locale> # include <locale>
#endif
int test_main(int, char*[]) int test_main(int, char*[])
{ {
@@ -41,6 +44,7 @@ int test_main(int, char*[])
<< std::endl; << std::endl;
BOOST_TEST(out.str() == "2"); BOOST_TEST(out.str() == "2");
#ifndef BOOST_NO_STD_LOCALE
const std::numpunct<char>& punct = const std::numpunct<char>& punct =
BOOST_USE_FACET(std::numpunct<char>, out.getloc()); BOOST_USE_FACET(std::numpunct<char>, out.getloc());
@@ -80,6 +84,7 @@ int test_main(int, char*[])
<< std::endl; << std::endl;
BOOST_TEST(out.str() == "maybe"); BOOST_TEST(out.str() == "maybe");
# endif # endif
#endif // ! BOOST_NO_STD_LOCALE
// Checking tribool input // Checking tribool input