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

Pavel Emelyanov xemul at virtuozzo.com
Wed Jun 15 04:30:28 PDT 2016


On 06/01/2016 06:51 PM, Andrew Vagin wrote:
> On Wed, Jun 01, 2016 at 02:27:07PM +0300, Pavel Emelyanov wrote:
>> 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?
> 
> Add CONFIG_SELF_TEST in config and criu will execute this tests when it
> starts. It's like selftest in kernel.

OK. How about the make selftest target in the makefile(s)?



More information about the CRIU mailing list