• Home
  • Raw
  • Download

Lines Matching refs:status

48 #define TEST_STATUS(status, expected) \  argument
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; in TestHeapFunctions() local
138 u_setMemoryFunctions(&gContext, myMemAlloc, myMemRealloc, myMemFree, &status); in TestHeapFunctions()
139 TEST_STATUS(status, U_INVALID_STATE_ERROR); in TestHeapFunctions()
145 status = U_ZERO_ERROR; in TestHeapFunctions()
146 u_setMemoryFunctions(&gContext, NULL, myMemRealloc, myMemFree, &status); in TestHeapFunctions()
147 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR); in TestHeapFunctions()
148 status = U_ZERO_ERROR; in TestHeapFunctions()
149 u_setMemoryFunctions(&gContext, myMemAlloc, NULL, myMemFree, &status); in TestHeapFunctions()
150 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR); in TestHeapFunctions()
151 status = U_ZERO_ERROR; in TestHeapFunctions()
152 u_setMemoryFunctions(&gContext, myMemAlloc, myMemRealloc, NULL, &status); in TestHeapFunctions()
153 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR); in TestHeapFunctions()
156 status = U_ZERO_ERROR; in TestHeapFunctions()
157 u_setMemoryFunctions(NULL, myMemAlloc, myMemRealloc, myMemFree, &status); in TestHeapFunctions()
158 TEST_STATUS(status, U_ZERO_ERROR); in TestHeapFunctions()
159 u_setMemoryFunctions(&gContext, myMemAlloc, myMemRealloc, myMemFree, &status); in TestHeapFunctions()
160 TEST_STATUS(status, U_ZERO_ERROR); in TestHeapFunctions()
164 status = U_ZERO_ERROR; in TestHeapFunctions()
166 u_init(&status); in TestHeapFunctions()
167 TEST_STATUS(status, U_ZERO_ERROR); in TestHeapFunctions()
168 u_setMemoryFunctions(NULL, myMemAlloc, myMemRealloc, myMemFree, &status); in TestHeapFunctions()
169 TEST_STATUS(status, U_INVALID_STATE_ERROR); in TestHeapFunctions()
173 status = U_ZERO_ERROR; in TestHeapFunctions()
174 rb = ures_open(NULL, "es", &status); in TestHeapFunctions()
175 TEST_STATUS(status, U_ZERO_ERROR); in TestHeapFunctions()
187 status = U_ZERO_ERROR; in TestHeapFunctions()
188 u_init(&status); in TestHeapFunctions()
189 TEST_STATUS(status, U_ZERO_ERROR); in TestHeapFunctions()
193 status = U_ZERO_ERROR; in TestHeapFunctions()
194 rb = ures_open(NULL, "fr", &status); in TestHeapFunctions()
195 TEST_STATUS(status, U_ZERO_ERROR); in TestHeapFunctions()
221 static void U_CALLCONV myMutexInit(const void *context, UMTX *mutex, UErrorCode *status) { in myMutexInit() argument
224 TEST_STATUS(*status, U_ZERO_ERROR); in myMutexInit()
265 UErrorCode status = U_ZERO_ERROR; in TestMutexFunctions() local
282 … u_setMutexFunctions(&gContext, myMutexInit, myMutexDestroy, myMutexLock, myMutexUnlock, &status); in TestMutexFunctions()
283 TEST_STATUS(status, U_INVALID_STATE_ERROR); in TestMutexFunctions()
289 status = U_ZERO_ERROR; in TestMutexFunctions()
290 u_setMutexFunctions(&gContext, NULL, myMutexDestroy, myMutexLock, myMutexUnlock, &status); in TestMutexFunctions()
291 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR); in TestMutexFunctions()
292 status = U_ZERO_ERROR; in TestMutexFunctions()
293 u_setMutexFunctions(&gContext, myMutexInit, NULL, myMutexLock, myMutexUnlock, &status); in TestMutexFunctions()
294 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR); in TestMutexFunctions()
295 status = U_ZERO_ERROR; in TestMutexFunctions()
296 u_setMutexFunctions(&gContext, myMutexInit, myMutexDestroy, NULL, myMutexUnlock, &status); in TestMutexFunctions()
297 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR); in TestMutexFunctions()
298 status = U_ZERO_ERROR; in TestMutexFunctions()
299 u_setMutexFunctions(&gContext, myMutexInit, myMutexDestroy, myMutexLock, NULL, &status); in TestMutexFunctions()
300 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR); in TestMutexFunctions()
303 status = U_ZERO_ERROR; in TestMutexFunctions()
304 u_setMutexFunctions(NULL, myMutexInit, myMutexDestroy, myMutexLock, myMutexUnlock, &status); in TestMutexFunctions()
305 TEST_STATUS(status, U_ZERO_ERROR); in TestMutexFunctions()
306 … u_setMutexFunctions(&gContext, myMutexInit, myMutexDestroy, myMutexLock, myMutexUnlock, &status); in TestMutexFunctions()
307 TEST_STATUS(status, U_ZERO_ERROR); in TestMutexFunctions()
311 status = U_ZERO_ERROR; in TestMutexFunctions()
313 u_init(&status); in TestMutexFunctions()
314 TEST_STATUS(status, U_ZERO_ERROR); in TestMutexFunctions()
315 … u_setMutexFunctions(&gContext, myMutexInit, myMutexDestroy, myMutexLock, myMutexUnlock, &status); in TestMutexFunctions()
316 TEST_STATUS(status, U_INVALID_STATE_ERROR); in TestMutexFunctions()
320 status = U_ZERO_ERROR; in TestMutexFunctions()
329 rb = ures_open(NULL, "es", &status); in TestMutexFunctions()
330 TEST_STATUS(status, U_ZERO_ERROR); in TestMutexFunctions()
338 status = U_ZERO_ERROR; in TestMutexFunctions()
346 u_init(&status); in TestMutexFunctions()
347 TEST_STATUS(status, U_ZERO_ERROR); in TestMutexFunctions()
349 status = U_ZERO_ERROR; in TestMutexFunctions()
350 rb = ures_open(NULL, "fr", &status); in TestMutexFunctions()
351 TEST_STATUS(status, U_ZERO_ERROR); in TestMutexFunctions()
397 UErrorCode status = U_ZERO_ERROR; in TestIncDecFunctions() local
411 u_setAtomicIncDecFunctions(&gIncDecContext, myIncFunc, myDecFunc, &status); in TestIncDecFunctions()
412 TEST_STATUS(status, U_INVALID_STATE_ERROR); in TestIncDecFunctions()
418 status = U_ZERO_ERROR; in TestIncDecFunctions()
419 u_setAtomicIncDecFunctions(&gIncDecContext, NULL, myDecFunc, &status); in TestIncDecFunctions()
420 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR); in TestIncDecFunctions()
421 status = U_ZERO_ERROR; in TestIncDecFunctions()
422 u_setAtomicIncDecFunctions(&gIncDecContext, myIncFunc, NULL, &status); in TestIncDecFunctions()
423 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR); in TestIncDecFunctions()
426 status = U_ZERO_ERROR; in TestIncDecFunctions()
428 u_setAtomicIncDecFunctions(NULL, myIncFunc, myDecFunc, &status); in TestIncDecFunctions()
429 TEST_STATUS(status, U_ZERO_ERROR); in TestIncDecFunctions()
431 u_setAtomicIncDecFunctions(&gIncDecContext, myIncFunc, myDecFunc, &status); in TestIncDecFunctions()
432 TEST_STATUS(status, U_ZERO_ERROR); in TestIncDecFunctions()
436 status = U_ZERO_ERROR; in TestIncDecFunctions()
438 u_init(&status); in TestIncDecFunctions()
439 TEST_STATUS(status, U_ZERO_ERROR); in TestIncDecFunctions()
441 u_setAtomicIncDecFunctions(&gIncDecContext, myIncFunc, myDecFunc, &status); in TestIncDecFunctions()
442 TEST_STATUS(status, U_INVALID_STATE_ERROR); in TestIncDecFunctions()
460 status = U_ZERO_ERROR; in TestIncDecFunctions()
462 u_init(&status); in TestIncDecFunctions()
466 status = U_ZERO_ERROR; in TestIncDecFunctions()
469 TEST_STATUS(status, U_ZERO_ERROR); in TestIncDecFunctions()