X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-readlink.h;h=1e482dfe7feddca9fca31b1268ec88db4e75d04a;hb=d6b7bf83fda294dd77ce90aac0bcd73a7626894d;hp=5f5e9108d31044d2a4cb7d680e779a07c627b4ed;hpb=dfd4d11c50dd4729bf46c26a3bbdda0c6031409d;p=gnulib.git diff --git a/tests/test-readlink.h b/tests/test-readlink.h index 5f5e9108d..1e482dfe7 100644 --- a/tests/test-readlink.h +++ b/tests/test-readlink.h @@ -1,5 +1,5 @@ /* Tests of readlink. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009, 2010 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 @@ -94,13 +94,13 @@ test_readlink (ssize_t (*func) (char const *, char *, size_t), bool print) result = readlink (BASE "link", buf, 1); if (result == -1) { - ASSERT (errno == ERANGE); - ASSERT (buf[0] == (char) 0xff); + ASSERT (errno == ERANGE); + ASSERT (buf[0] == (char) 0xff); } else { - ASSERT (result == 1); - ASSERT (buf[0] == BASE[0]); + ASSERT (result == 1); + ASSERT (buf[0] == BASE[0]); } ASSERT (buf[1] == (char) 0xff); ASSERT (func (BASE "link", buf, len) == len);