In message_queue_test_05, it planned to allocate 100 message queues for stress testing. But if the system resource of message queue couldn't meet it, it would exit without deleting the allocated message queues. In addition, other test cases couldn't allocate a new message queue any more. This patch addresses this by:
1> Add a cleanup() to remove the created message queues at premature exit.
2> Change the default number of message queues from 100 to 10. Because the maxmum on RHEL/SLES/Ubuntu is 16.
Signed-Off-By: Jin Bing Guo <guojb@cn.ibm.com>.
1 file changed