On Wed, Feb 12, 2014 at 10:46 PM, Alvaro Herrera
<alvhe...@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


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to