On 04/27/2011 11:58 AM, Eric Blake wrote:
> On 04/26/2011 05:35 PM, Eric Blake wrote:
>> * tests/test-getcwd-lgpl.c: New file, taken from...
>> * tests/test-getcwd.c: ...old contents.  Rewrite this file to
>> repeat long path stress tests from m4 probe.
>> * modules/getcwd-lgpl-tests: New module.
>> * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
>> * m4/getcwd-abort-bug.m4: Update comment.
>> * m4/getcwd-path-max.m4: Likewise.
> 
> I enhanced the test-getcwd-lgpl a bit more (ensure that whether buf is
> NULL or provided, that too-small but non-zero size results in ERANGE),
> then pushed this.

And in the process, found that mingw getcwd() is broken :)

mingw uses int instead of size_t for the second argument, and returns a
string rather than failing with ERANGE on getcwd(NULL, 1).

I'll have to fix that tomorrow.

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to