X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-areadlink.h;h=55b41c038e5e4885390b919843826dc9f1479060;hb=26535571c14933f11ad56adca51cf11410bf9c52;hp=5e2a643b4528b37d82abb6576108f34c6db936ca;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/tests/test-areadlink.h b/tests/test-areadlink.h index 5e2a643b4..55b41c038 100644 --- a/tests/test-areadlink.h +++ b/tests/test-areadlink.h @@ -1,5 +1,5 @@ /* Tests of areadlink and friends. - Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2009-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -36,7 +36,7 @@ test_areadlink (char * (*func) (char const *, size_t), bool print) ASSERT (errno == ENOENT); errno = 0; ASSERT (func ("", 1) == NULL); - ASSERT (errno == ENOENT); + ASSERT (errno == ENOENT || errno == EINVAL); errno = 0; ASSERT (func (".", 1) == NULL); ASSERT (errno == EINVAL); @@ -49,7 +49,7 @@ test_areadlink (char * (*func) (char const *, size_t), bool print) ASSERT (errno == EINVAL); errno = 0; ASSERT (func (BASE "file/", 1) == NULL); - ASSERT (errno == ENOTDIR); + ASSERT (errno == ENOTDIR || errno == EINVAL); /* AIX yields EINVAL */ ASSERT (unlink (BASE "file") == 0); /* Now test actual symlinks. */