regressions: Add basic coverage of ck_hp_fifo.

ck_pring
Samy Al Bahra 11 years ago
parent cb8f5f9ebb
commit cbc2206ba0

@ -163,6 +163,12 @@ main(int argc, char *argv[])
ck_hp_init(&fifo_hp, 2, threshold, destructor); ck_hp_init(&fifo_hp, 2, threshold, destructor);
ck_hp_fifo_init(&fifo, malloc(sizeof(ck_hp_fifo_entry_t))); ck_hp_fifo_init(&fifo, malloc(sizeof(ck_hp_fifo_entry_t)));
ck_hp_fifo_entry_t *entry;
ck_hp_fifo_deinit(&fifo, &entry);
free(entry);
ck_hp_fifo_init(&fifo, malloc(sizeof(ck_hp_fifo_entry_t)));
for (i = 0; i < nthr; i++) { for (i = 0; i < nthr; i++) {
context[i].tid = i; context[i].tid = i;
r = pthread_create(thread + i, NULL, test, context + i); r = pthread_create(thread + i, NULL, test, context + i);

Loading…
Cancel
Save