freebsd-dev/lib/libc/tests
Conrad Meyer 5a28df2e13 getmntinfo(3): Scale faster, and return sooner
getmntinfo(3) is designed around a relatively static or slow growing set of
current mounts.  It tried to detect a race with somewhat concurrent mount
and re-call getfsstat(2) in that case, looping indefinitely.  It also
allocated space for a single extra mount as slop.

In the case where the user has a large number of mounts and is adding them
at a rapid pace, it fell over.

This patch makes two functional changes:

1. Allocate even more slop.  Double whatever the last getfsstat(2) returned.

2. Abort and return some known results after looping a few times
   (arbitrarily, 3).  If the list is constantly changing, we can't guarantee
   we return a full result to the user at any point anyways.

While here, add very basic functional tests for getmntinfo(3) to the libc
suite.

PR:		221743
Submitted by:	Peter Eriksson <peter AT ifm.liu.se> (earlier version)
Sponsored by:	Dell EMC Isilon
2017-08-25 16:38:21 +00:00
..
c063 Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
db Upgrade NetBSD tests to 01.11.2017_23.20 snapshot 2017-01-13 03:33:57 +00:00
gen getmntinfo(3): Scale faster, and return sooner 2017-08-25 16:38:21 +00:00
hash Remove CFLAGS for sha2_test 2017-01-14 12:55:32 +00:00
iconv Increase WARNS for iconv tests 2017-03-11 00:02:05 +00:00
inet Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
locale Don't build/install lib/libc/io_test anymore 2017-03-20 03:50:22 +00:00
net Re-add PACKAGE=> tests to lib/libc/tests/net/getaddrinfo/Makefile and add 2016-09-19 06:59:17 +00:00
nss hostent_test_getaddrinfo_eq(..): call freeaddrinfo on ai when done 2017-05-28 07:40:42 +00:00
regex Add -DSKIP_LEFTASSOC to CFLAGS so leftassoc is skipped, like on NetBSD 2017-01-15 10:03:03 +00:00
resolv Increase timeout from 10 minutes to 20 minutes for all tests 2016-08-13 01:49:11 +00:00
rpc Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
setjmp Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
ssp This commit addresses regression introduceded in r302177 2016-06-28 07:47:42 +00:00
stdio Expect :int_within_limits to fail when ptrdiff_t/*intmax_t differ in base type 2017-02-07 05:39:00 +00:00
stdlib tsearch_test: Test twalk & add some determinism. 2017-06-06 03:40:45 +00:00
string Improve standard compliance for memset_s() and abort_handler_s(). 2017-08-12 15:18:17 +00:00
sys Properly set userid for truncate_test. 2017-07-21 16:14:06 +00:00
termios Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
time Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
tls Manipulate OBJDIR with :H when referencing dso directory 2017-02-11 20:14:50 +00:00
tls_dso Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
ttyio Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
Makefile Only build lib/libc/tests/iconv if MK_ICONV != no 2016-10-21 04:54:43 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
Makefile.netbsd-tests Change WARNS to 2 across the board with all the libc testcases 2015-11-15 05:21:58 +00:00