Do we care about malloc failure in tests?
Alexander Cherepanov
ch3root@openwall.com
Tue May 31 17:00:00 GMT 2016
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
More information about the Libc-alpha
mailing list