Re: [PATCHES] pg_regress breaks on msys - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [PATCHES] pg_regress breaks on msys
Date
Msg-id 200607282000.k6SK02x04643@momjian.us
Whole thread Raw
In response to Re: [PATCHES] pg_regress breaks on msys  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCHES] pg_regress breaks on msys
List pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > I checked on MinGW and system() just returns the value returned by the
> > application.  There isn't any special two-values-in-one layering like is
> > done on Unix for wait() and the return value from system().  It seems if
> > the child dies from a signal, the parent dies too, at least in my C
> > tests.
>
> The cases that I think we most need to defend against are
>
> (A) diff program not found
>
> (B) diff fails to read one of the input files
>
> I think your proposal handles case B, because diff should return exit
> code 2 which we will detect, but what happens in case A?  Please test it.

It returns 1.

--
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] pg_regress breaks on msys
Next
From: "Dann Corbit"
Date:
Subject: Re: On-disk bitmap index patch