Re: ecpg regression broken on mingw

Lists: pgsql-hackers
From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Magnus Hagander <magnus(at)hagander(dot)net>, Michael Meskes <meskes(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: ecpg regression broken on mingw
Date: 2007-06-14 11:47:58
Message-ID: 46712AEE.4000109@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers


The ECPG regression tests appear to be broken on MinGW (see buildfarm
trout and vaquita). Please tell me that this isn't a line ending problem
like it appears on cursory inspection.

cheers

andrew


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Michael Meskes <meskes(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ecpg regression broken on mingw
Date: 2007-06-14 11:51:49
Message-ID: 20070614115149.GA29032@svr2.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, Jun 14, 2007 at 07:47:58AM -0400, Andrew Dunstan wrote:
>
> The ECPG regression tests appear to be broken on MinGW (see buildfarm
> trout and vaquita). Please tell me that this isn't a line ending problem
> like it appears on cursory inspection.

It certainly looks like that, but yak is also a mingw machine, no? And it
shows green (and yes, it has pulled the changes in the regression tests
already)

//Magnus


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Michael Meskes <meskes(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ecpg regression broken on mingw
Date: 2007-06-14 12:17:05
Message-ID: 467131C1.4010108@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Magnus Hagander wrote:
> On Thu, Jun 14, 2007 at 07:47:58AM -0400, Andrew Dunstan wrote:
>
>> The ECPG regression tests appear to be broken on MinGW (see buildfarm
>> trout and vaquita). Please tell me that this isn't a line ending problem
>> like it appears on cursory inspection.
>>
>
> It certainly looks like that, but yak is also a mingw machine, no? And it
> shows green (and yes, it has pulled the changes in the regression tests
> already)
>
>
>

Maybe it uses a different CVS or something. Who knows? Aren't our diffs
supposed to be done ignoring whitespace?

cheers

andrew


From: Joachim Wieland <joe(at)mcknight(dot)de>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Michael Meskes <meskes(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ecpg regression broken on mingw
Date: 2007-06-14 12:28:26
Message-ID: 20070614122826.GA27412@mcknight.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, Jun 14, 2007 at 08:17:05AM -0400, Andrew Dunstan wrote:
> Maybe it uses a different CVS or something. Who knows? Aren't our diffs
> supposed to be done ignoring whitespace?

pg_init() in pg_regress_ecpg.c has:

/* no reason to set -w for ecpg checks, except for when on windows */
if (strstr(host_platform, "-win32"))
basic_diff_opts = "-w";
else
basic_diff_opts = "";

What value does host_platform have on MinGW?

Joachim


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Joachim Wieland <joe(at)mcknight(dot)de>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Michael Meskes <meskes(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Dave Page <dpage(at)postgresql(dot)org>
Subject: Re: ecpg regression broken on mingw
Date: 2007-06-14 12:35:29
Message-ID: 20070614123529.GB29032@svr2.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, Jun 14, 2007 at 02:28:26PM +0200, Joachim Wieland wrote:
>
>
> On Thu, Jun 14, 2007 at 08:17:05AM -0400, Andrew Dunstan wrote:
> > Maybe it uses a different CVS or something. Who knows? Aren't our diffs
> > supposed to be done ignoring whitespace?
>
> pg_init() in pg_regress_ecpg.c has:
>
> /* no reason to set -w for ecpg checks, except for when on windows */
> if (strstr(host_platform, "-win32"))
> basic_diff_opts = "-w";
> else
> basic_diff_opts = "";
>
> What value does host_platform have on MinGW?

That could certainly be it - on the failing machine, it's:
i686-pc-mingw32

Dave, any chance you can change that check to look for both -win32 and
-mingw32 and give it a test run on vaquita?

(I'll see if I have a vmware around that can run the build meanwhile, but
if it's easy for you to do..)

//Magnus


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Joachim Wieland <joe(at)mcknight(dot)de>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Michael Meskes <meskes(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Dave Page <dpage(at)postgresql(dot)org>
Subject: Re: ecpg regression broken on mingw
Date: 2007-06-14 13:08:00
Message-ID: 20070614130800.GC29032@svr2.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, Jun 14, 2007 at 02:35:29PM +0200, Magnus Hagander wrote:
> On Thu, Jun 14, 2007 at 02:28:26PM +0200, Joachim Wieland wrote:
> >
> >
> > On Thu, Jun 14, 2007 at 08:17:05AM -0400, Andrew Dunstan wrote:
> > > Maybe it uses a different CVS or something. Who knows? Aren't our diffs
> > > supposed to be done ignoring whitespace?
> >
> > pg_init() in pg_regress_ecpg.c has:
> >
> > /* no reason to set -w for ecpg checks, except for when on windows */
> > if (strstr(host_platform, "-win32"))
> > basic_diff_opts = "-w";
> > else
> > basic_diff_opts = "";
> >
> > What value does host_platform have on MinGW?
>
> That could certainly be it - on the failing machine, it's:
> i686-pc-mingw32
>
> Dave, any chance you can change that check to look for both -win32 and
> -mingw32 and give it a test run on vaquita?
>
> (I'll see if I have a vmware around that can run the build meanwhile, but
> if it's easy for you to do..)

This seems to fix most of the problems - I still see 3 tests failing. I'll
commit this change for now.

The interesting thing is that the failed ones seem to *still* be because of
line endings...

//Magnus


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Joachim Wieland <joe(at)mcknight(dot)de>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Michael Meskes <meskes(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Dave Page <dpage(at)postgresql(dot)org>
Subject: Re: ecpg regression broken on mingw
Date: 2007-06-14 13:12:11
Message-ID: 20070614131211.GD29032@svr2.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, Jun 14, 2007 at 03:08:00PM +0200, Magnus Hagander wrote:
> On Thu, Jun 14, 2007 at 02:35:29PM +0200, Magnus Hagander wrote:
> > On Thu, Jun 14, 2007 at 02:28:26PM +0200, Joachim Wieland wrote:
> > >
> > >
> > > On Thu, Jun 14, 2007 at 08:17:05AM -0400, Andrew Dunstan wrote:
> > > > Maybe it uses a different CVS or something. Who knows? Aren't our diffs
> > > > supposed to be done ignoring whitespace?
> > >
> > > pg_init() in pg_regress_ecpg.c has:
> > >
> > > /* no reason to set -w for ecpg checks, except for when on windows */
> > > if (strstr(host_platform, "-win32"))
> > > basic_diff_opts = "-w";
> > > else
> > > basic_diff_opts = "";
> > >
> > > What value does host_platform have on MinGW?
> >
> > That could certainly be it - on the failing machine, it's:
> > i686-pc-mingw32
> >
> > Dave, any chance you can change that check to look for both -win32 and
> > -mingw32 and give it a test run on vaquita?
> >
> > (I'll see if I have a vmware around that can run the build meanwhile, but
> > if it's easy for you to do..)
>
> This seems to fix most of the problems - I still see 3 tests failing. I'll
> commit this change for now.
>
> The interesting thing is that the failed ones seem to *still* be because of
> line endings...

Yeah yeah, spammer here, 'eh ;-)

It's not line-ending problem anymore. It's the different float formats on
win32. I looked at the wrong diff file.

I think what's left now is just that mingw needs a different output file
with a different float format in it, just like for the other regression
tests. I'll try to make that happen.

//Magnus