[CRIU] [PATCH] [RFC] criu: test different situations when parasite must cure itself

Cyrill Gorcunov gorcunov at gmail.com
Wed Oct 15 11:15:24 PDT 2014


On Wed, Oct 15, 2014 at 03:24:18PM +0400, Andrey Vagin wrote:
> Here is a simple fault-injection engine. Each fault has uniq code.
> One of this code can be set to the CRIU_FAULT environment variable.
> On the next run this code will be triggered.
> For each fault we need to have code which emulate a specified behaviour.
> 
> This patch checks following cases:
> * a parasite socket was closed unexpectedly
> * How parasite handles unsupported command
> * something failed when a parasite daemon is rinning.
> * criu dies unexpectedly
> 
> Fault-injection code is compiled only if make is executed with DEBUG=1.
> 
> The following command can be used to check all existing fault cases:
> make -C test fault-injection
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>

FWIW, looks good to me


More information about the CRIU mailing list