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-getlogin_r.c
diff --git
a/tests/test-getlogin_r.c
b/tests/test-getlogin_r.c
index
f716ab9
..
f566e03
100644
(file)
--- a/
tests/test-getlogin_r.c
+++ b/
tests/test-getlogin_r.c
@@
-69,5
+69,13
@@
main (void)
ASSERT (getlogin_r (smallbuf, i) == ERANGE);
}
+ /* Test with a huge buffer. */
+ {
+ static char hugebuf[70000];
+
+ ASSERT (getlogin_r (hugebuf, sizeof (hugebuf)) == 0);
+ ASSERT (strcmp (hugebuf, buf) == 0);
+ }
+
return 0;
}