Home | History | Annotate | Download | only in cintltst

Lines Matching refs:status

48 #define TEST_STATUS(status, expected) \
49 if (status != expected) { \
50 log_err_status(status, "FAIL at %s:%d. Actual status = \"%s\"; Expected status = \"%s\"\n", \
51 __FILE__, __LINE__, u_errorName(status), u_errorName(expected)); gMutexFailures++; }
123 UErrorCode status = U_ZERO_ERROR;
138 u_setMemoryFunctions(&gContext, myMemAlloc, myMemRealloc, myMemFree, &status);
139 TEST_STATUS(status, U_INVALID_STATE_ERROR);
145 status = U_ZERO_ERROR;
146 u_setMemoryFunctions(&gContext, NULL, myMemRealloc, myMemFree, &status);
147 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR);
148 status = U_ZERO_ERROR;
149 u_setMemoryFunctions(&gContext, myMemAlloc, NULL, myMemFree, &status);
150 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR);
151 status = U_ZERO_ERROR;
152 u_setMemoryFunctions(&gContext, myMemAlloc, myMemRealloc, NULL, &status);
153 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR);
156 status = U_ZERO_ERROR;
157 u_setMemoryFunctions(NULL, myMemAlloc, myMemRealloc, myMemFree, &status);
158 TEST_STATUS(status, U_ZERO_ERROR);
159 u_setMemoryFunctions(&gContext, myMemAlloc, myMemRealloc, myMemFree, &status);
160 TEST_STATUS(status, U_ZERO_ERROR);
164 status = U_ZERO_ERROR;
166 u_init(&status);
167 TEST_STATUS(status, U_ZERO_ERROR);
168 u_setMemoryFunctions(NULL, myMemAlloc, myMemRealloc, myMemFree, &status);
169 TEST_STATUS(status, U_INVALID_STATE_ERROR);
173 status = U_ZERO_ERROR;
174 rb = ures_open(NULL, "es", &status);
175 TEST_STATUS(status, U_ZERO_ERROR);
187 status = U_ZERO_ERROR;
188 u_init(&status);
189 TEST_STATUS(status, U_ZERO_ERROR);
193 status = U_ZERO_ERROR;
194 rb = ures_open(NULL, "fr", &status);
195 TEST_STATUS(status, U_ZERO_ERROR);
221 static void U_CALLCONV myMutexInit(const void *context, UMTX *mutex, UErrorCode *status) {
224 TEST_STATUS(*status, U_ZERO_ERROR);
265 UErrorCode status = U_ZERO_ERROR;
282 u_setMutexFunctions(&gContext, myMutexInit, myMutexDestroy, myMutexLock, myMutexUnlock, &status);
283 TEST_STATUS(status, U_INVALID_STATE_ERROR);
289 status = U_ZERO_ERROR;
290 u_setMutexFunctions(&gContext, NULL, myMutexDestroy, myMutexLock, myMutexUnlock, &status);
291 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR);
292 status = U_ZERO_ERROR;
293 u_setMutexFunctions(&gContext, myMutexInit, NULL, myMutexLock, myMutexUnlock, &status);
294 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR);
295 status = U_ZERO_ERROR;
296 u_setMutexFunctions(&gContext, myMutexInit, myMutexDestroy, NULL, myMutexUnlock, &status);
297 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR);
298 status = U_ZERO_ERROR;
299 u_setMutexFunctions(&gContext, myMutexInit, myMutexDestroy, myMutexLock, NULL, &status);
300 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR);
303 status = U_ZERO_ERROR;
304 u_setMutexFunctions(&gContext, myMutexInit, myMutexDestroy, myMutexLock, myMutexUnlock, &status);
305 TEST_STATUS(status, U_ZERO_ERROR);
306 u_setMutexFunctions(&gContext, myMutexInit, myMutexDestroy, myMutexLock, myMutexUnlock, &status);
307 TEST_STATUS(status, U_ZERO_ERROR);
311 status = U_ZERO_ERROR;
313 u_init(&status);
314 TEST_STATUS(status, U_ZERO_ERROR);
315 u_setMutexFunctions(&gContext, myMutexInit, myMutexDestroy, myMutexLock, myMutexUnlock, &status);
316 TEST_STATUS(status, U_INVALID_STATE_ERROR);
320 status = U_ZERO_ERROR;
321 rb = ures_open(NULL, "es", &status);
322 TEST_STATUS(status, U_ZERO_ERROR);
330 status = U_ZERO_ERROR;
338 u_init(&status);
339 TEST_STATUS(status, U_ZERO_ERROR);
341 status = U_ZERO_ERROR;
342 rb = ures_open(NULL, "fr", &status);
343 TEST_STATUS(status, U_ZERO_ERROR);
389 UErrorCode status = U_ZERO_ERROR;
403 u_setAtomicIncDecFunctions(&gIncDecContext, myIncFunc, myDecFunc, &status);
404 TEST_STATUS(status, U_INVALID_STATE_ERROR);
410 status = U_ZERO_ERROR;
411 u_setAtomicIncDecFunctions(&gIncDecContext, NULL, myDecFunc, &status);
412 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR);
413 status = U_ZERO_ERROR;
414 u_setAtomicIncDecFunctions(&gIncDecContext, myIncFunc, NULL, &status);
415 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR);
418 status = U_ZERO_ERROR;
420 u_setAtomicIncDecFunctions(NULL, myIncFunc, myDecFunc, &status);
421 TEST_STATUS(status, U_ZERO_ERROR);
423 u_setAtomicIncDecFunctions(&gIncDecContext, myIncFunc, myDecFunc, &status);
424 TEST_STATUS(status, U_ZERO_ERROR);
428 status = U_ZERO_ERROR;
430 u_init(&status);
431 TEST_STATUS(status, U_ZERO_ERROR);
433 u_setAtomicIncDecFunctions(&gIncDecContext, myIncFunc, myDecFunc, &status);
434 TEST_STATUS(status, U_INVALID_STATE_ERROR);
452 status = U_ZERO_ERROR;
454 u_init(&status);
458 status = U_ZERO_ERROR;
461 TEST_STATUS(status, U_ZERO_ERROR);