]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: test-data-stack - add some fatal tests.
authorPhil Carmody <phil@dovecot.fi>
Wed, 30 Jul 2014 12:01:29 +0000 (15:01 +0300)
committerPhil Carmody <phil@dovecot.fi>
Wed, 30 Jul 2014 12:01:29 +0000 (15:01 +0300)
commitee2298ffa2c91fa156ba5ba05d45576a99d3f9ad
treeaa1d3dafb10922472df1d32b0e7e270bb8fc9d7e
parent8bec19723b39071a1794e76dec35d151473cae5f
lib: test-data-stack - add some fatal tests.
Extra caution is necessary as data-stack is such a fundamental component.
All of the brokenness that we add must be undone as soon as possible, or
there will be an endless loop of catastrophic errors. In order to avoid
that, at least try to detect some issues, and abort as quickly as possible.

Alas, due to the reliance of these tests on DEBUG code, if that's not set,
this test is a no-op.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
src/lib/test-data-stack.c
src/lib/test-lib.c
src/lib/test-lib.h