Re: pg_test_fsync: "Invalid argument" in the middle of a test - Mailing list pgsql-general

From Marti Raudsepp
Subject Re: pg_test_fsync: "Invalid argument" in the middle of a test
Date
Msg-id CABRT9RCbGqpzXRjrzpmxf10ULodxNsw9=KFPTieeej8JpOuiWQ@mail.gmail.com
Whole thread Raw
In response to Re: pg_test_fsync: "Invalid argument" in the middle of a test  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List 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 by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: pg_test_fsync: "Invalid argument" in the middle of a test
Next
From: Michael Paquier
Date:
Subject: Re: Xlogdump compiling error : undefined reference to `ber_sockbuf_io_udp'