| OLD | NEW |
| 1 /******************************************************************** | 1 /******************************************************************** |
| 2 * COPYRIGHT: | 2 * COPYRIGHT: |
| 3 * Copyright (c) 2002-2010, International Business Machines Corporation and | 3 * Copyright (c) 2002-2014, International Business Machines Corporation and |
| 4 * others. All Rights Reserved. | 4 * others. All Rights Reserved. |
| 5 ********************************************************************/ | 5 ********************************************************************/ |
| 6 | 6 |
| 7 /* Created by weiv 05/09/2002 */ | 7 /* Created by weiv 05/09/2002 */ |
| 8 | 8 |
| 9 #include <stdarg.h> | 9 #include <stdarg.h> |
| 10 | 10 |
| 11 #include "unicode/tstdtmod.h" | 11 #include "unicode/tstdtmod.h" |
| 12 #include "cmemory.h" | 12 #include "cmemory.h" |
| 13 #include <stdio.h> | 13 #include <stdio.h> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 reset(); | 55 reset(); |
| 56 return FALSE; | 56 return FALSE; |
| 57 } | 57 } |
| 58 } | 58 } |
| 59 | 59 |
| 60 void IcuTestErrorCode::handleFailure() const { | 60 void IcuTestErrorCode::handleFailure() const { |
| 61 // testClass.errln("%s failure - %s", testName, errorName()); | 61 // testClass.errln("%s failure - %s", testName, errorName()); |
| 62 UnicodeString msg(testName, -1, US_INV); | 62 UnicodeString msg(testName, -1, US_INV); |
| 63 msg.append(UNICODE_STRING_SIMPLE(" failure: ")).append(UnicodeString(errorNa
me(), -1, US_INV)); | 63 msg.append(UNICODE_STRING_SIMPLE(" failure: ")).append(UnicodeString(errorNa
me(), -1, US_INV)); |
| 64 | 64 |
| 65 if (get() == U_MISSING_RESOURCE_ERROR) { | 65 if (get() == U_MISSING_RESOURCE_ERROR || get() == U_FILE_ACCESS_ERROR) { |
| 66 testClass.dataerrln(msg); | 66 testClass.dataerrln(msg); |
| 67 } else { | 67 } else { |
| 68 testClass.errln(msg); | 68 testClass.errln(msg); |
| 69 } | 69 } |
| 70 } | 70 } |
| 71 | 71 |
| 72 TestDataModule *TestDataModule::getTestDataModule(const char* name, TestLog& log
, UErrorCode &status) | 72 TestDataModule *TestDataModule::getTestDataModule(const char* name, TestLog& log
, UErrorCode &status) |
| 73 { | 73 { |
| 74 if(U_FAILURE(status)) { | 74 if(U_FAILURE(status)) { |
| 75 return NULL; | 75 return NULL; |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 fLog.dataerrln(UNICODE_STRING_SIMPLE("Could not load test data from
resourcebundle: ") + UnicodeString(bundleName, -1, US_INV)); | 219 fLog.dataerrln(UNICODE_STRING_SIMPLE("Could not load test data from
resourcebundle: ") + UnicodeString(bundleName, -1, US_INV)); |
| 220 fDataTestValid = FALSE; | 220 fDataTestValid = FALSE; |
| 221 } | 221 } |
| 222 } | 222 } |
| 223 return testBundle; | 223 return testBundle; |
| 224 } else { | 224 } else { |
| 225 return NULL; | 225 return NULL; |
| 226 } | 226 } |
| 227 } | 227 } |
| 228 | 228 |
| OLD | NEW |