/* This is a unit test for a bug found by the syzkaller tester */ void iteration_test(unsigned order, unsigned test_duration)
{ int i;
printv(1, "Running %siteration tests for %d seconds\n",
order > 0 ? "multiorder " : "", test_duration);
max_order = order;
test_complete = false;
for (i = 0; i < 3; i++)
seeds[i] = rand();
if (pthread_create(&threads[0], NULL, tagged_iteration_fn, NULL)) {
perror("create tagged iteration thread"); exit(1);
} if (pthread_create(&threads[1], NULL, untagged_iteration_fn, NULL)) {
perror("create untagged iteration thread"); exit(1);
} if (pthread_create(&threads[2], NULL, add_entries_fn, NULL)) {
perror("create add entry thread"); exit(1);
} if (pthread_create(&threads[3], NULL, remove_entries_fn, NULL)) {
perror("create remove entry thread"); exit(1);
} if (pthread_create(&threads[4], NULL, tag_entries_fn, NULL)) {
perror("create tag entry thread"); exit(1);
}
sleep(test_duration);
test_complete = true;
for (i = 0; i < NUM_THREADS; i++) { if (pthread_join(threads[i], NULL)) {
perror("pthread_join"); exit(1);
}
}
item_kill_tree(&array);
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.12Bemerkung:
(vorverarbeitet am 2026-10-12)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.