Lines Matching refs:tests
12 const p##_test_t tests[] = { \
32 for (i = 0; i < sizeof(tests)/sizeof(p##_test_t); i++) { \
34 t accum = tests[i].accum0; \
36 tests[i].accum0, \
39 assert_##ta##_eq(atomic_add_##p(&accum, tests[i].x), \
40 (t)((tc)tests[i].accum0 + (tc)tests[i].x), \
42 i, tests[i].accum0, tests[i].x); \
46 accum = tests[i].accum0; \
47 assert_##ta##_eq(atomic_sub_##p(&accum, tests[i].x), \
48 (t)((tc)tests[i].accum0 - (tc)tests[i].x), \
50 i, tests[i].accum0, tests[i].x); \
54 accum = tests[i].accum0; \
55 err = atomic_cas_##p(&accum, tests[i].x, tests[i].s); \
56 assert_b_eq(err, tests[i].accum0 != tests[i].x, \
58 assert_##ta##_eq(accum, err ? tests[i].accum0 : \
59 tests[i].s, "Erroneous cas effect, i=%u", i); \
61 accum = tests[i].accum0; \
62 atomic_write_##p(&accum, tests[i].s); \
63 assert_##ta##_eq(accum, tests[i].s, \