Lines Matching refs: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;
71 uta = utext_openUChars(NULL, uString, -1, &status);
72 TEST_SUCCESS(status);
78 uta = utext_openUTF8(&utLoc, cString, -1, &status);
79 TEST_SUCCESS(status);
93 status = U_ZERO_ERROR;
94 uta = utext_openUChars(NULL, uString, -1, &status);
95 TEST_SUCCESS(status);
96 utb = utext_clone(NULL, uta, FALSE, FALSE, &status);
97 TEST_SUCCESS(status);
115 status = U_ZERO_ERROR;
116 uta = utext_openUChars(NULL, uString, -1, &status);
118 TEST_SUCCESS(status);
190 status = U_ZERO_ERROR;
191 uta = utext_openUChars(NULL, NULL, 0, &status);
192 TEST_SUCCESS(status);
197 uta = utext_openUTF8(NULL, NULL, 0, &status);
198 TEST_SUCCESS(status);
214 status = U_ZERO_ERROR;
215 uta = utext_openUChars(NULL, uString, -1, &status);
216 TEST_SUCCESS(status);
218 status = U_ZERO_ERROR;
219 i = utext_extract(uta, 0, 100, NULL, 0, &status);
220 TEST_ASSERT(status==U_BUFFER_OVERFLOW_ERROR);
223 status = U_ZERO_ERROR;
225 i = utext_extract(uta, 0, 100, buf, 100, &status);
226 TEST_SUCCESS(status);
243 status = U_ZERO_ERROR;
244 uta = utext_openUChars(NULL, uString, -1, &status);
245 TEST_SUCCESS(status);
256 &status);
257 TEST_ASSERT(status == U_NO_WRITE_PERMISSION);
264 &status);
265 TEST_ASSERT(status == U_NO_WRITE_PERMISSION);