[Lsb-infrastructure] devchk mktests now not generating some things...

Denis Silakov silakov at ispras.ru
Wed Jul 11 01:18:23 PDT 2007


Wichmann, Mats D wrote:
> Wichmann, Mats D wrote:
>   
>> everything impacts everything else, I guess
>>
>> after the change to the type of timer_t (bug 1673),
>> I can't regenerate the devchk test:
>>
>> $ ./mktests -v 3.2 sys/types.h
>> No types to tests to write for sys/types.h
>>
>>
>> Any idea what went wrong here?
>>     
>
> hmmm, maybe this is just syntax that doesn't work
> any longer, none of the sys/foo.h files work if
> given as an argument to mktests.  There doesn't
> seem to be a problem running in default mode,
> namely regenerate everything.
>
> I won't worry about this.
>   
The reason is that a separate algorithm is used when mktests is called
for a single header in order to determine which checks should be
performed - if types from a header are not used by interfaces, then
devchk will report 'No types to tests'.

In the 'default mode' all 'included' types and constants are taken into
account, and this is more correct - there are types not directly used by
interfaces, but required by some other types (and, surely, constants
also should be checked). (Although there are queries for 'types used by
interfaces' even in the default mode, but their results are not used
anywhere, so they only slow down mktests).

The patch correcting this situation is now available in Bugzilla 1686
(http://bugs.linuxbase.org/show_bug.cgi?id=1686). mktests will now have
the same behavior in both modes (single header/all headers). This patch
also removes unnecessary queries from mktests, so it works faster now.

-- 
Regards,
Denis.




More information about the Lsb-infrastructure mailing list