Re: perror.m4 test

2011-10-22 Thread Bruno Haible
Eric Blake wrote: > > I'm not sure. This test is about perror(). Should it fail just because > > strerror returns an invalid pointer? Eric, what do you think? > > perror() is required to give output containing the same string as > strerror, and strerror() is required to give a valid string (possi

Re: perror.m4 test

2011-10-15 Thread Eric Blake
On 10/15/2011 03:49 AM, Bruno Haible wrote: Hi Eric, Daniel Richard G. wrote: * "checking whether perror matches strerror": strerror(-1) returns an invalid pointer, and attempting to puts() this yields SIGBUS. (Wouldn't it be safer to pass EPERM or something similarly universal?) Thi

Re: perror.m4 test

2011-10-15 Thread Bruno Haible
Hi Eric, Daniel Richard G. wrote: > > > * "checking whether perror matches strerror": strerror(-1) returns > > > an invalid pointer, and attempting to puts() this yields SIGBUS. > > > (Wouldn't it be safer to pass EPERM or something similarly > > > universal?) > > > > This is the purpose of