28 #include <rtems/test.h> 35 T_check(&t->base, a == e,
"%s", t->msg);
41 T_check(&t->base, a != e,
"%s", t->msg);
47 T_check(&t->base, a == NULL,
"%s == NULL", t->msg);
53 T_check(&t->base, a != NULL,
"%s != NULL", t->msg);
60 T_check(&t->base, memcmp(a, e, n) == 0,
"%s", t->msg);
67 T_check(&t->base, memcmp(a, e, n) != 0,
"%s", t->msg);
73 T_check(t, strcmp(a, e) == 0,
"\"%s\" == \"%s\"", a, e);
79 T_check(t, strcmp(a, e) != 0,
"\"%s\" != \"%s\"", a, e);
83 T_check_eq_nstr(
const T_check_context *t,
const char *a,
const char *e,
size_t n)
85 T_check(t, strncmp(a, e, n) == 0,
"\"%.*s\" == \"%.*s\"", (
int)n, a,
90 T_check_ne_nstr(
const T_check_context *t,
const char *a,
const char *e,
size_t n)
92 T_check(t, strncmp(a, e, n) != 0,
"\"%.*s\" != \"%.*s\"", (
int)n, a,
99 T_check(t, a == e,
"'%c' == '%c'", a, e);
105 T_check(t, a != e,
"'%c' != '%c'", a, e);
111 T_check(t, a == e,
"%i == %i", a, e);
117 T_check(t, a != e,
"%i != %i", a, e);
123 T_check(t, a >= e,
"%i >= %i", a, e);
129 T_check(t, a > e,
"%i > %i", a, e);
135 T_check(t, a <= e,
"%i <= %i", a, e);
141 T_check(t, a < e,
"%i < %i", a, e);
145 T_check_eq_uint(
const T_check_context *t,
unsigned int a,
unsigned int e)
147 T_check(t, a == e,
"%u == %u", a, e);
151 T_check_ne_uint(
const T_check_context *t,
unsigned int a,
unsigned int e)
153 T_check(t, a != e,
"%u != %u", a, e);
157 T_check_ge_uint(
const T_check_context *t,
unsigned int a,
unsigned int e)
159 T_check(t, a >= e,
"%u >= %u", a, e);
163 T_check_gt_uint(
const T_check_context *t,
unsigned int a,
unsigned int e)
165 T_check(t, a > e,
"%u > %u", a, e);
169 T_check_le_uint(
const T_check_context *t,
unsigned int a,
unsigned int e)
171 T_check(t, a <= e,
"%u <= %u", a, e);
175 T_check_lt_uint(
const T_check_context *t,
unsigned int a,
unsigned int e)
177 T_check(t, a < e,
"%u < %u", a, e);
183 T_check(t, a == e,
"%li == %li", a, e);
189 T_check(t, a != e,
"%li != %li", a, e);
195 T_check(t, a >= e,
"%li >= %li", a, e);
201 T_check(t, a > e,
"%li > %li", a, e);
207 T_check(t, a <= e,
"%li <= %li", a, e);
213 T_check(t, a < e,
"%li < %li", a, e);
217 T_check_eq_ulong(
const T_check_context *t,
unsigned long a,
unsigned long e)
219 T_check(t, a == e,
"%lu == %lu", a, e);
223 T_check_ne_ulong(
const T_check_context *t,
unsigned long a,
unsigned long e)
225 T_check(t, a != e,
"%lu != %lu", a, e);
229 T_check_ge_ulong(
const T_check_context *t,
unsigned long a,
unsigned long e)
231 T_check(t, a >= e,
"%lu >= %lu", a, e);
235 T_check_gt_ulong(
const T_check_context *t,
unsigned long a,
unsigned long e)
237 T_check(t, a > e,
"%lu > %lu", a, e);
241 T_check_le_ulong(
const T_check_context *t,
unsigned long a,
unsigned long e)
243 T_check(t, a <= e,
"%lu <= %lu", a, e);
247 T_check_lt_ulong(
const T_check_context *t,
unsigned long a,
unsigned long e)
249 T_check(t, a < e,
"%lu < %lu", a, e);
255 T_check(t, a == e,
"%lli == %lli", a, e);
261 T_check(t, a != e,
"%lli != %lli", a, e);
267 T_check(t, a >= e,
"%lli >= %lli", a, e);
273 T_check(t, a > e,
"%lli > %lli", a, e);
279 T_check(t, a <= e,
"%lli <= %lli", a, e);
285 T_check(t, a < e,
"%lli < %lli", a, e);
290 unsigned long long e)
292 T_check(t, a == e,
"%llu == %llu", a, e);
297 unsigned long long e)
299 T_check(t, a != e,
"%llu != %llu", a, e);
304 unsigned long long e)
306 T_check(t, a >= e,
"%llu >= %llu", a, e);
311 unsigned long long e)
313 T_check(t, a > e,
"%llu > %llu", a, e);
318 unsigned long long e)
320 T_check(t, a <= e,
"%llu <= %llu", a, e);
325 unsigned long long e)
327 T_check(t, a < e,
"%llu < %llu", a, e);