[LTP] [PATCH v2 5/5] close_range: Add test

Cyril Hrubis
2021-02-12T13:23:06Z

Hi!
Pushed with small changes, thanks.

* Added a runtest file entry

* Add .needs_root which is what we have for tests that utilize loop devices

* Reformatted the top level comment so it's picked by docparser

* Shortened the git hash to 12 characters, since that's what we have in
the rest of the tests

Also we are missing simple test for a negative cases, that is:

* Check that EINVAL is returned if we pass ~0 to flags

* And check that EINVAL is returned when fd < fd_max as well

And one more a bit more complicated test:

We should also get EMFILE if we do CLOSE_RANGE_UNSHARE and the parent
rlimit is exhausted.

Will you write these tests as well, or should I have a look?

--
Cyril Hrubis
chrubis@suse.cz