Lines Matching defs:status
43 #define TEST_STATUS(status, expected) \
44 if (status != expected) { \
45 log_err_status(status, "FAIL at %s:%d. Actual status = \"%s\"; Expected status = \"%s\"\n", \
46 __FILE__, __LINE__, u_errorName(status), u_errorName(expected)); gMutexFailures++; }
118 UErrorCode status = U_ZERO_ERROR;
133 u_setMemoryFunctions(&gContext, myMemAlloc, myMemRealloc, myMemFree, &status);
134 TEST_STATUS(status, U_INVALID_STATE_ERROR);
140 status = U_ZERO_ERROR;
141 u_setMemoryFunctions(&gContext, NULL, myMemRealloc, myMemFree, &status);
142 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR);
143 status = U_ZERO_ERROR;
144 u_setMemoryFunctions(&gContext, myMemAlloc, NULL, myMemFree, &status);
145 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR);
146 status = U_ZERO_ERROR;
147 u_setMemoryFunctions(&gContext, myMemAlloc, myMemRealloc, NULL, &status);
148 TEST_STATUS(status, U_ILLEGAL_ARGUMENT_ERROR);
151 status = U_ZERO_ERROR;
152 u_setMemoryFunctions(NULL, myMemAlloc, myMemRealloc, myMemFree, &status);
153 TEST_STATUS(status, U_ZERO_ERROR);
154 u_setMemoryFunctions(&gContext, myMemAlloc, myMemRealloc, myMemFree, &status);
155 TEST_STATUS(status, U_ZERO_ERROR);
159 status = U_ZERO_ERROR;
161 u_init(&status);
162 TEST_STATUS(status, U_ZERO_ERROR);
163 u_setMemoryFunctions(NULL, myMemAlloc, myMemRealloc, myMemFree, &status);
164 TEST_STATUS(status, U_INVALID_STATE_ERROR);
168 status = U_ZERO_ERROR;
169 rb = ures_open(NULL, "es", &status);
170 TEST_STATUS(status, U_ZERO_ERROR);
182 status = U_ZERO_ERROR;
183 u_init(&status);
184 TEST_STATUS(status, U_ZERO_ERROR);
188 status = U_ZERO_ERROR;
189 rb = ures_open(NULL, "fr", &status);
190 TEST_STATUS(status, U_ZERO_ERROR);