[CRIU] Re: [PATCH] zdtm: shm test update

Kinsbursky Stanislav skinsbursky at openvz.org
Mon Feb 6 09:20:37 EST 2012


06.02.2012 18:00, Andrew Vagin пишет:
>
>> +#define IPC_PRESET 00040000
> I can't find where do you use IPC_PRESET?

Nowhere. Should be removed.

>> +
>>   const char *test_doc="Tests detached shmems migrate fine";
>>   const char *test_author="Andrew Vagin<avagin at parallels.com>";
> You rewrite this test case, so you are the author.

No problem.

>>
>> @@ -20,69 +22,176 @@ TEST_OPTION(shmem_size, uint, "Size of shared memory segment", 0);
>>
>>   #define INIT_CRC	(~0)
>>
>> -int main(int argc, char **argv)
>> +#if defined (__GLIBC__)&&  __GLIBC__>= 2
>> +#define KEY __key
>> +#else
>> +#define KEY key
>> +#endif
> What is it ^^^?

This is a preprocessor macros.
What EXACTLY you are asking about?

>> +
>> +#define SHM_SET        15
> nobody uses SHM_SET

Yep. Should be removed.

>> +
>> +#define CLONE_NEWIPC		0x08000000
> #define _GNU_SOURCE
> #include<sched.h>

Will try.

-- 
Best regards,
Stanislav Kinsbursky




More information about the CRIU mailing list