Re: regression script/makefile exit failure

From: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
To: <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: regression script/makefile exit failure
Date: 2004-12-11 19:26:15
Message-ID: 3993.24.211.141.25.1102793175.squirrel@www.dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Tom Lane said:
> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>> Further investigation has shown that the exit/trap idiom used in
>> pg_regress.sh is less than 100% portable.
>> The following shell script has been seen to produce incorrect output
>> on both Cygwin and FreeBSD:
>
> This is distinctly less than credible. If it were true, we'd have been
> seeing regression failures on FreeBSD for years. The script has looked
> like that at least back to 7.1 ...
>

I think you possibly misunderstand. It's not that the trap handler doesn't
get called - it's that it doesn't get the correct $?. The only symptom of
incorrectness is that pg_regress would exit with a status of 0 rather than 2
or whatever it should be. DarcyB ran that test script for me yesterday on
his FreeBSD-6 box (buildfarm's herring) and it produced "status = 0" rather
than the expected "status = 9". I would not expect anyone to have noticed
this behaviour unless they were testing the exit status of "make check".

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2004-12-11 19:37:53 Re: errmsg("... because ...")
Previous Message Tom Lane 2004-12-11 18:53:06 Re: regression script/makefile exit failure

Browse pgsql-patches by date

  From Date Subject
Next Message Peter Eisentraut 2004-12-11 19:53:20 Re: Translation updates: pt_BR
Previous Message Peter Eisentraut 2004-12-11 19:08:50 Re: 8.0 RC1 NLS translate fo zh_CN