]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r320737, r320914
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 1 Aug 2017 16:00:21 +0000 (16:00 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 1 Aug 2017 16:00:21 +0000 (16:00 +0000)
commit007e375309ea0eb49b378dfcebc0691d4570391c
tree7cb80131fb1b90c649e9a884362cf7688b970c9c
parentc72b43e6e02558f922507307bc2d3ef66d0091c8
MFC r320737, r320914

r320737:
Fix cleanup in lib/libc/gen/setdomainname_test

ATF cleanup routines run in separate processes from the tests themselves, so
they can't share global variables.

Also, setdomainname_test needs to be is_exclusive because the test cases
access a global resource.

PR: 219967
Reviewed by: ngie
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D11188

r320914:
Remove an extraneous strlen from t_setdomainname.c

Reported by: Coverity
CID: 1377568
X-MFC-With: 320737
Sponsored by: Spectra Logic Corp

git-svn-id: svn://svn.freebsd.org/base/stable/10@321878 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/netbsd-tests/lib/libc/gen/t_setdomainname.c
lib/libc/tests/gen/Makefile