Hi Bruno,

Bruno Haible wrote:
> In this case, if EXIT_FAILURE were 2 or 3 instead of 1 on some
> platforms, the *documented* exit codes of the 'diff' or 'grep'
> commands or other utilities would not hold any more.
> 
> If we ever encounter a platform where EXIT_FAILURE was like this,
> we want to know about it quickly, so as to avoid silly bug reports
> when some GNU packages are compiled on that platform and don't work
> as expected.

Sounds good. The situation I was thinking of was a system program
compiled with EXIT_FAILURE being some valid value not equal to 1. If a
GNU program using Gnulib calls that and then checks
"exit_status == EXIT_FAILURE" then it will behave incorrectly. I guess
that problem is annoying but at least it doesn't make the GNU program
disagree with it's associated documentation. The situation I am
thinking of seems rare enough that hopefully it should never occur.

> If someone wants to create a pure POSIX test suite from the Gnulib
> tests, they are welcome to do so. I would also applaud efforts if
> some people were to create an interesting POSIX test suite that
> is Free Software, with Gnulib bits included. But that is likely
> some bigger effort, that the Linux Foundation maybe could host.
> (The Open Group will not be in favour of it; AFAIU, they want to
> sell their proprietary POSIX test suite for expensive money.)

That would be nice, I agree. I think the Linux Standard Base has a
test suite including some POSIX conformance stuff contributed by The
Open Group. Probably out-of-date since, as far as I know, the LSB is
no longer maintained.

Collin

Reply via email to