- LEAK_DETECTIVE activated

- memory leak in event_queue_t fixed
This commit is contained in:
Jan Hutter
2005-11-08 07:04:15 +00:00
parent 01d06501d9
commit 6e67d74a9b
4 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
/**
* Number of different times to insert per thread
*/
#define EVENT_QUEUE_TIMES 10
#define EVENT_QUEUE_TIMES 5
/**
* Number of entries per time per thread
*/
+3 -3
View File
@@ -104,7 +104,7 @@ void test_job_queue(tester_t *tester)
test_infos.tester = tester;
test_infos.job_queue = job_queue;
test_infos.insert_item_count = 10000;
test_infos.remove_item_count = 10000;
test_infos.remove_item_count = 50000;
desired_value = test_infos.insert_item_count * sender_count -
@@ -130,9 +130,9 @@ void test_job_queue(tester_t *tester)
pthread_join(receiver_threads[i], NULL);
}
/* the job-queue has to have disered_value count entries! */
tester->assert_true(tester,(job_queue->get_count(job_queue,&value) == SUCCESS), "get count call check");
tester->assert_true(tester,(value == desired_value), "get count value check");
tester->assert_true(tester,(value == desired_value), "get count value check");
tester->assert_true(tester,(job_queue->destroy(job_queue) == SUCCESS), "destroy call check");
}
+1 -1
View File
@@ -33,7 +33,7 @@
/**
* Number of packets to send by sender-thread
*/
#define NUMBER_OF_PACKETS_TO_SEND 400
#define NUMBER_OF_PACKETS_TO_SEND 50
/**
* Port to send the packets to