tests: don't change hard limit in test-rlimit-util
authorEvgeny Vereshchagin <evvers@ya.ru>
Mon, 4 Jan 2016 07:51:41 +0000 (07:51 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Mon, 4 Jan 2016 07:56:48 +0000 (07:56 +0000)
commitd5bc32d10325d8ce0b8891590252344f75e69596
tree837dc1c0fada6587077662e4d7e80a48193ac9f2
parent05442a9cdc3feaecfe27ed537b36de81818ae522
tests: don't change hard limit in test-rlimit-util

Fixes:
$ make valgrind-tests TESTS=test-rlimit-util
...
Running test-rlimit-util
Assertion 'setrlimit(RLIMIT_NOFILE, &new) >= 0' failed at src/test/test-rlimit-util.c:41, function main(). Aborting.

See http://valgrind.org/docs/manual/dist.news.old.html

The setrlimit system call now simply updates the emulated limits as best
as possible - the hard limit is not allowed to move at all and just
returns EPERM if you try and change it.
src/test/test-rlimit-util.c