X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/46f4442e9a5a4f3b98b7c1083586332f6a8a99a4..151279e3792e85d0417b499c229886b3af724f55:/icuSources/test/intltest/restest.cpp diff --git a/icuSources/test/intltest/restest.cpp b/icuSources/test/intltest/restest.cpp index 0f9175b0..49f4de96 100644 --- a/icuSources/test/intltest/restest.cpp +++ b/icuSources/test/intltest/restest.cpp @@ -1,6 +1,6 @@ /******************************************************************** * COPYRIGHT: - * Copyright (c) 1997-2008, International Business Machines Corporation and + * Copyright (c) 1997-2009, International Business Machines Corporation and * others. All Rights Reserved. ********************************************************************/ @@ -183,11 +183,16 @@ void ResourceBundleTest::runIndexedTest( int32_t index, UBool exec, const char* { if (exec) logln("TestSuite ResourceBundleTest: "); switch (index) { +#if !UCONFIG_NO_FILE_IO && !UCONFIG_NO_LEGACY_CONVERSION case 0: name = "TestResourceBundles"; if (exec) TestResourceBundles(); break; case 1: name = "TestConstruction"; if (exec) TestConstruction(); break; - case 2: name = "TestExemplar"; if (exec) TestExemplar(); break; - case 3: name = "TestGetSize"; if (exec) TestGetSize(); break; - case 4: name = "TestGetLocaleByType"; if (exec) TestGetLocaleByType(); break; + case 2: name = "TestGetSize"; if (exec) TestGetSize(); break; + case 3: name = "TestGetLocaleByType"; if (exec) TestGetLocaleByType(); break; +#else + case 0: case 1: case 2: case 3: name = "skip"; break; +#endif + + case 4: name = "TestExemplar"; if (exec) TestExemplar(); break; default: name = ""; break; //needed to end loop } } @@ -202,7 +207,7 @@ ResourceBundleTest::TestResourceBundles() loadTestData(status); if(U_FAILURE(status)) { - dataerrln("[DATA] Could not load testdata.dat %s " + UnicodeString(u_errorName(status))); + dataerrln("Could not load testdata.dat %s " + UnicodeString(u_errorName(status))); return; } @@ -235,7 +240,7 @@ ResourceBundleTest::TestConstruction() const char* testdatapath=loadTestData(err); if(U_FAILURE(err)) { - dataerrln("[DATA] Could not load testdata.dat " + UnicodeString(testdatapath) + ", " + UnicodeString(u_errorName(err))); + dataerrln("Could not load testdata.dat " + UnicodeString(testdatapath) + ", " + UnicodeString(u_errorName(err))); return; } @@ -319,7 +324,7 @@ ResourceBundleTest::testTag(const char* frag, testdatapath=loadTestData(status); if(U_FAILURE(status)) { - dataerrln("[DATA] Could not load testdata.dat %s " + UnicodeString(u_errorName(status))); + dataerrln("Could not load testdata.dat %s " + UnicodeString(u_errorName(status))); return FALSE; } @@ -534,7 +539,7 @@ ResourceBundleTest::TestGetSize(void) if(U_FAILURE(status)) { - dataerrln("[DATA] Could not load testdata.dat %s\n", u_errorName(status)); + dataerrln("Could not load testdata.dat %s\n", u_errorName(status)); return; } @@ -588,7 +593,7 @@ ResourceBundleTest::TestGetLocaleByType(void) if(U_FAILURE(status)) { - dataerrln("[DATA] Could not load testdata.dat %s\n", u_errorName(status)); + dataerrln("Could not load testdata.dat %s\n", u_errorName(status)); return; }