Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 12, 2014 at 10:46 PM, Alvaro Herrera
<alvherre@xxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux