ICU-461.16.tar.gz
[apple/icu.git] / icuSources / test / cintltst / cposxtst.c
index 8d6d7b67278efa3b069105a6d99537a3e8776a4a..e4643a7ecfc43d95520e477623f85d59e3582650 100644 (file)
@@ -1,6 +1,6 @@
 /*
 **********************************************************************
-* Copyright (c) 2003, International Business Machines
+* Copyright (c) 2003-2009, International Business Machines
 * Corporation and others.  All Rights Reserved.
 **********************************************************************
 * Author: Alan Liu
@@ -26,7 +26,9 @@ void addPosixTest(TestNode** root);
 
 void addPosixTest(TestNode** root)
 {
+#if !UCONFIG_NO_FILE_IO && !UCONFIG_NO_LEGACY_CONVERSION
     addTest(root, &TestMessageCatalog, "tsutil/cposxtst/TestMessageCatalog");
+#endif
 }
 
 /**********************************************************************/
@@ -56,13 +58,13 @@ void TestMessageCatalog(void) {
     const char *path = loadTestData(&ec);
  
     if (U_FAILURE(ec)) {
-        log_err("FAIL: loadTestData => %s\n", u_errorName(ec));
+        log_data_err("FAIL: loadTestData => %s\n", u_errorName(ec));
         return;
     }
 
     catd = u_catopen(path, "mc", &ec);
     if (U_FAILURE(ec)) {
-        log_err("FAIL: u_catopen => %s\n", u_errorName(ec));
+        log_data_err("FAIL: u_catopen => %s\n", u_errorName(ec));
         return;
     }