The test suit was not generating unique items to add to the queue

The de-dupplication of the queue then resulted in unexpected behaviour.

This should fix the test suite
This commit is contained in:
Kai Krueger
2013-06-15 11:09:27 -06:00
parent dd75339f8d
commit 6e1f6afdad

View File

@ -83,9 +83,11 @@ void *addition_thread(void * arg) {
unsigned int seed = syscall(SYS_gettid);
clock_gettime(CLOCK_THREAD_CPUTIME_ID, &time);
seed *= (unsigned int)time.tv_nsec;
pthread_t tid = pthread_self();
for (int i = 0; i < NO_QUEUE_REQUESTS; i++) {
item = init_render_request(cmdDirty);
item->my = tid;
item->mx = rand_r(&seed);
res = request_queue_add_request(queue, item);
}