Re: [HACKERS] pg_regress breaks on msys

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] pg_regress breaks on msys
Дата
Msg-id 562.1154116760@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] pg_regress breaks on msys  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: [HACKERS] pg_regress breaks on msys  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-patches
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.

            regards, tom lane

В списке pgsql-patches по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] 8.2 features?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] pg_regress breaks on msys