[dm-devel] [PATCH 12/12] multipath: add unit tests for dmevents code
Martin Wilck
mwilck at suse.com
Mon Mar 19 12:01:10 UTC 2018
On Wed, 2018-03-14 at 12:46 -0500, Benjamin Marzinski wrote:
> These unit tests do not get complete code coverage. Also, they don't
> check for memory errors. To do this through unit tests, instead of
> using valgrid, would require adding unit test specific compilation
> defines to the code, and compiling a seperate unit-test version.
>
> Signed-off-by: Benjamin Marzinski <bmarzins at redhat.com>
I'm impressed, you went much further with cmocka than I did so far.
Nice work.
Reviewed-by: Martin Wilck <mwilck at suse.com>
... but this is pretty dense material. I'd appreciate a follow-up patch
adding some comments about the more complex test cases to make them
easier to understand.
--
Dr. Martin Wilck <mwilck at suse.com>, Tel. +49 (0)911 74053 2107
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
More information about the dm-devel
mailing list