X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-areadlink.h;h=c7d8324048725d68995f350adcb7749bc54fa921;hb=422ab2e0d70ed348e2fd0a82558be38e5859011a;hp=57fdb7af582f84183a84638403b814e6f624acd9;hpb=231bdaf6198a766ae5442fef6f4b8e661d523868;p=gnulib.git diff --git a/tests/test-areadlink.h b/tests/test-areadlink.h index 57fdb7af5..c7d832404 100644 --- a/tests/test-areadlink.h +++ b/tests/test-areadlink.h @@ -1,5 +1,5 @@ /* Tests of areadlink and friends. - Copyright (C) 2009 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 @@ -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. */