[CRIU] [PATCH 3/3] path: add unit tests for mnt_get_sibling_path()

Pavel Emelyanov xemul at virtuozzo.com
Wed Jun 1 04:27:07 PDT 2016


On 05/17/2016 03:29 AM, Andrey Vagin wrote:
> From: Andrew Vagin <avagin at virtuozzo.com>
> 
> Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
> ---
>  criu/path.c | 38 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 38 insertions(+)
> 
> diff --git a/criu/path.c b/criu/path.c
> index 46a65ec..321f9ca 100644
> --- a/criu/path.c
> +++ b/criu/path.c
> @@ -99,3 +99,41 @@ char *mnt_get_sibling_path(struct mount_info *m,
>  
>  	return buf;
>  }
> +
> +#ifdef CONFIG_SELF_TEST

1 and 2 applied. This one -- how to use this "unit-test" feature?



More information about the CRIU mailing list