memblockq-test: Some refactoring
authorUlrich Eckhardt <ulrich.eckhardt@base-42.de>
Thu, 19 May 2016 18:00:46 +0000 (20:00 +0200)
committerArun Raghavan <arun@arunraghavan.net>
Fri, 22 Jul 2016 09:48:27 +0000 (15:18 +0530)
commita295cb87cf62f787fe65e40b5e6499ff531a4aaa
tree4b873ac85833aa2db9026d9a2efbeabd5474b51b
parent37b0ce03338ddd17a31064b7ff16a517817d216a
memblockq-test: Some refactoring

 - Set the loglevel once in the main entry code instead of in each test function.
 - Check pool allocation succeeded.
 - Reduce code by using utility function to allocate chunks.
 - Improve coverage by using utility function to validate queue invariants.
src/tests/memblockq-test.c