aboutsummaryrefslogtreecommitdiff
path: root/test/unit/messages_facets_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/messages_facets_test.cpp')
-rw-r--r--test/unit/messages_facets_test.cpp85
1 files changed, 0 insertions, 85 deletions
diff --git a/test/unit/messages_facets_test.cpp b/test/unit/messages_facets_test.cpp
deleted file mode 100644
index 610bbaa..0000000
--- a/test/unit/messages_facets_test.cpp
+++ /dev/null
@@ -1,85 +0,0 @@
-#include "locale_test.h"
-
-#if !defined (STLPORT) || !defined (_STLP_USE_NO_IOSTREAMS)
-# include <locale>
-# include <stdexcept>
-
-# if !defined (STLPORT) || defined(_STLP_USE_NAMESPACES)
-using namespace std;
-# endif
-
-//
-// tests implementation
-//
-void LocaleTest::messages_by_name()
-{
- /*
- * Check of the 22.1.1.2.7 standard point. Construction of a locale
- * instance from a null pointer or an unknown name should result in
- * a runtime_error exception.
- */
-# if !defined (STLPORT) || defined (_STLP_USE_EXCEPTIONS)
-# if defined (STLPORT) || !defined (__GNUC__)
- try {
- locale loc(locale::classic(), new messages_byname<char>(static_cast<char const*>(0)));
- CPPUNIT_FAIL;
- }
- catch (runtime_error const& /* e */) {
- //CPPUNIT_MESSAGE( e.what() );
- }
- catch (...) {
- CPPUNIT_FAIL;
- }
-# endif
-
- try {
- locale loc(locale::classic(), new messages_byname<char>("yasli_language"));
- CPPUNIT_FAIL;
- }
- catch (runtime_error const& /* e */) {
- //CPPUNIT_MESSAGE( e.what() );
- }
- catch (...) {
- CPPUNIT_FAIL;
- }
-
- /*
- try {
- locale loc(locale::classic(), new messages_byname<char>(""));
- CPPUNIT_FAIL;
- }
- catch (runtime_error const& e) {
- CPPUNIT_MESSAGE( e.what() );
- }
- catch (...) {
- CPPUNIT_FAIL;
- }
- */
-
-# if !defined (STLPORT) || !defined (_STLP_NO_WCHAR_T)
-# if defined (STLPORT) || !defined (__GNUC__)
- try {
- locale loc(locale::classic(), new messages_byname<wchar_t>(static_cast<char const*>(0)));
- CPPUNIT_FAIL;
- }
- catch (runtime_error const&) {
- }
- catch (...) {
- CPPUNIT_FAIL;
- }
-# endif
-
- try {
- locale loc(locale::classic(), new messages_byname<wchar_t>("yasli_language"));
- CPPUNIT_FAIL;
- }
- catch (runtime_error const&) {
- }
- catch (...) {
- CPPUNIT_FAIL;
- }
-# endif
-# endif
-}
-
-#endif