This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Update kernel version to 5.4 in tst-mman-consts.py


On Thu, 28 Nov 2019, Carlos O'Donell wrote:

> I noticed the test doesn't appear to cover PROT_*, MS_*, MADV_*, MCL_*
> or PKEY_* constants? Is that an oversight or a conscious choice?

The idea when adding the test was to add something sufficient to be 
useful that could also be a starting point for adding more such tests 
later.  It would certainly make sense to test more such macros there.

We now have three such tests (tst-mman-consts.py tst-signal-numbers.py 
tst-socket-consts.py).  My expectation is that once we have enough, there 
will be clear common patterns that allow us to move to having a single 
Python script to run them, and text files that describe the headers, 
macros (and hopefully structure layouts as well) to compare and any 
relevant kernel version information, rather than a separate Python script 
for each test.  (Cf. how the constant extraction for assembly sources - 
which shares code used by these tests - has .sym files rather than a 
separate script for each generated header.)

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]