Re: [LTP] clone tests fails

Jiri Palecek
2010-01-07T01:21:39Z

Mike Frysinger napsal(a):
> On Tuesday 05 January 2010 20:05:17 Jiri Palecek wrote:
>> Michal, I suspect the failures you see are somehow related to alignment
>> (that your architecture doesn't like odd addresses). Is that right? Under
>> x86, the address gets aligned (so some of the space is unused).
>>
>> Perhaps both of these behaviors should be tested by LTP?
>
> i dont think such tests would be reliable or useful ?

I don't think so. The set of addresses that can be successfully passed to
clone() and the actual space the stack will occupy with the given parameters are
definitely part of the interface (because the user cannot use the interface
correctly without knowing these), therefore testing them is useful, and they
should be quite easily testable, although the test would be
architecture-dependent, but oh well, so is the whole clone() syscall.

Regards
Jiri Palecek