Lines Matching defs:status
41 #define TEST_SUCCESS(status) \
42 {if (U_FAILURE(status)) {log_err("Test failure in file %s at line %d. Error = \"%s\"\n", \
43 __FILE__, __LINE__, u_errorName(status)); \
59 UErrorCode status = U_ZERO_ERROR;
72 uta = utext_openUChars(NULL, uString, -1, &status);
73 TEST_SUCCESS(status);
79 uta = utext_openUTF8(&utLoc, cString, -1, &status);
80 TEST_SUCCESS(status);
94 status = U_ZERO_ERROR;
95 uta = utext_openUChars(NULL, uString, -1, &status);
96 TEST_SUCCESS(status);
97 utb = utext_clone(NULL, uta, FALSE, FALSE, &status);
98 TEST_SUCCESS(status);
116 status = U_ZERO_ERROR;
117 uta = utext_openUChars(NULL, uString, -1, &status);
119 TEST_SUCCESS(status);
191 status = U_ZERO_ERROR;
192 uta = utext_openUChars(NULL, NULL, 0, &status);
193 TEST_SUCCESS(status);
198 uta = utext_openUTF8(NULL, NULL, 0, &status);
199 TEST_SUCCESS(status);
219 status = U_ZERO_ERROR;
220 uta = utext_openUChars(NULL, uString, -1, &status);
221 TEST_SUCCESS(status);
223 status = U_ZERO_ERROR;
224 i = utext_extract(uta, 0, 100, NULL, 0, &status);
225 TEST_ASSERT(status==U_BUFFER_OVERFLOW_ERROR);
228 status = U_ZERO_ERROR;
230 i = utext_extract(uta, 0, 100, buf, 100, &status);
231 TEST_SUCCESS(status);
238 status = U_ZERO_ERROR;
239 uta = utext_openUChars(NULL, uString2Ptr, -1, &status);
240 TEST_SUCCESS(status);
242 status = U_ZERO_ERROR;
244 i = utext_extract(uta, -3, 20, buf, 100, &status);
245 TEST_SUCCESS(status);
262 status = U_ZERO_ERROR;
263 uta = utext_openUChars(NULL, uString, -1, &status);
264 TEST_SUCCESS(status);
275 &status);
276 TEST_ASSERT(status == U_NO_WRITE_PERMISSION);
283 &status);
284 TEST_ASSERT(status == U_NO_WRITE_PERMISSION);