]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r357195, r357556: O_SEARCH test fixes
authorKyle Evans <kevans@FreeBSD.org>
Thu, 6 Feb 2020 18:40:37 +0000 (18:40 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Thu, 6 Feb 2020 18:40:37 +0000 (18:40 +0000)
commit4be6372e5f2653c3f1826f4e5ea0ddf2ee53c109
treee0193390509d3bd11ba5e3ac6782f7e1a7341bcb
parentca7e97813ab4fd28a2228abc4ee3810cc2d8aba1
MFC r357195, r357556: O_SEARCH test fixes

r357195:
netbsd-tests: libc: use correct modes in O_SEARCH tests

The current code clearly intended for these to be octal based on the values
used, but the octal prefix was forgotten. Add it now for correctness, but
note that we don't currently execute these tests.

This has been submitted upstream as misc/54902, so I've omitted the standard
FreeBSD markers that we tend to put into netbsd-tests for upstream-candidate
identification.

r357556:
O_SEARCH tests: plug trivial fd leak

Coverity correctly reports this as a resource leak. It's an admittedly minor
one, but plug it anyways.

This has been submitted upstream as misc/54939.
contrib/netbsd-tests/lib/libc/c063/t_o_search.c