| 170 | } |
| 171 | |
| 172 | static int |
| 173 | check_ring_op(uint32_t exp, uint32_t res, uint32_t lc, |
| 174 | const char *fname, const char *opname) |
| 175 | { |
| 176 | if (exp != res) { |
| 177 | printf("%s(lc=%u) failure: %s expected: %u, returned %u\n", |
| 178 | fname, lc, opname, exp, res); |
| 179 | return -ENOSPC; |
| 180 | } |
| 181 | return 0; |
| 182 | } |
| 183 | |
| 184 | static int |
| 185 | test_worker(void *arg, const char *fname, int32_t prcs) |