projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
getlogin_r: Support for native Windows.
[gnulib.git]
/
tests
/
test-readlink.h
diff --git
a/tests/test-readlink.h
b/tests/test-readlink.h
index
5f5e910
..
1e482df
100644
(file)
--- a/
tests/test-readlink.h
+++ b/
tests/test-readlink.h
@@
-1,5
+1,5
@@
/* Tests of readlink.
/* 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
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)
{
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
{
}
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);
}
ASSERT (buf[1] == (char) 0xff);
ASSERT (func (BASE "link", buf, len) == len);