Re: pg_test_fsync: "Invalid argument" in the middle of a test

Поиск
Список
Период
Сортировка
От Marti Raudsepp
Тема Re: pg_test_fsync: "Invalid argument" in the middle of a test
Дата
Msg-id CABRT9RCbGqpzXRjrzpmxf10ULodxNsw9=KFPTieeej8JpOuiWQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_test_fsync: "Invalid argument" in the middle of a test  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-general
On Wed, Feb 12, 2014 at 10:46 PM, Alvaro Herrera
<alvherre@2ndquadrant.com> wrote:
> Would it be more useful to report the test as failed and continue with
> other tests?

Yeah, I think so, I'm planning to code this in the week. It's harder
than it sounds because the alarm() timer is still ticking. On POSIX it
can be cancelled with alarm(0), but the Windows code spawns a separate
thread for timing.

It seems that TerminateThread [1] could be used on Windows. It has
many caveats, but should be safe for our purposes. Or we could only
implement error handling on POSIX and call exit(1) on Windows.

[1] http://msdn.microsoft.com/en-us/library/windows/desktop/ms686717%28v=vs.85%29.aspx

Regards,
Marti


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: pg_test_fsync: "Invalid argument" in the middle of a test
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Xlogdump compiling error : undefined reference to `ber_sockbuf_io_udp'