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: [PATCH 01/13] nptl: Add NPTL cases for cancellation failures cases


The top line of a new file should be a descriptive comment.  

New test cases should have clear comments describing exactly what they are
testing.  

Don't predeclare locals, just use C99 inline declarations.  

Make sure all lines are under 80 characters.

You sample errno in the local variable E but then test errno itself instead
of testing E.  As there are no other calls between sampling errno and using
its value in the argument to printf, there is no real need for the local.
But if you want to have the local, use it consistently.

Since these two cases have almost identical code, make one of them just
#include the other with a #define rather than duplicating all the code.

If these tests pass with the existing code, then send them separately so
it's clear they can safely go in before the whole patch series is reviewed.


Thanks,
Roland


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