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: Do we care about malloc failure in tests?


On 2016-05-31 10:10, Andreas Schwab wrote:
Paul Pluzhnikov <ppluzhnikov@google.com> writes:

Do we have a policy here?
Should I fix them to consistently check for NULL, or delete existing
NULL checks?

All tests should do proper NULL checks, only to set a good example.

That would be nice. When I was playing with static analysis of glibc code, tests were giving quite some noise. The policy of holding tests to the same level of rigor as the main code converts this noise into signal:-)

--
Alexander Cherepanov


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