getloadavg test: skip the test on GNU/Linux without /proc mounted
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 11 Jan 2012 20:49:06 +0000 (00:49 +0400)
committerEric Blake <eblake@redhat.com>
Wed, 11 Jan 2012 20:54:10 +0000 (13:54 -0700)
commit92f1c30e37851a1d32330febc0dfd2548f3f64c5
tree08f138e70eb3cd923cee93041387aa0ec7f269ac
parent557f8d27ac9cfd41bf944eb883a1e8a10812603a
getloadavg test: skip the test on GNU/Linux without /proc mounted

GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
file.  When /proc is not mounted, it always fails with ENOENT.
* tests/test-getloadavg.c (main): Treat ENOENT return code from
getloadavg(3) the same way as ENOSYS and ENOTSUP.
ChangeLog
tests/test-getloadavg.c