memblockq-test: Utility function to validate queue invariants
authorUlrich Eckhardt <ulrich.eckhardt@base-42.de>
Sat, 28 May 2016 09:15:49 +0000 (11:15 +0200)
committerArun Raghavan <arun@arunraghavan.net>
Fri, 22 Jul 2016 09:48:27 +0000 (15:18 +0530)
commit37b0ce03338ddd17a31064b7ff16a517817d216a
treeb33d5ed5bfde492fdd715f1dbcf006f31dfb8281
parentac72e85f0a0aade2d1c62aaf356b7039c4387139
memblockq-test: Utility function to validate queue invariants

In particular, the relations between base, minreq, tlength, length,
missing, maxlength follow certain rules. On change, these invariants can
be violated, which requires additional code to restore them. Setting one
value can thus cause a cascade of changes. This utility function can
assert those invariants after changing something.
src/tests/memblockq-test.c