summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorasomers <asomers@FreeBSD.org>2017-08-01 16:00:21 +0000
committerasomers <asomers@FreeBSD.org>2017-08-01 16:00:21 +0000
commit84fd88c1e567e9bbb3377b6d97b5b7e805fd0f7e (patch)
tree7cb80131fb1b90c649e9a884362cf7688b970c9c /lib/libc
parent10b112d8c5c09c253d7b02a5784452ead7e3a3d0 (diff)
downloadFreeBSD-src-84fd88c1e567e9bbb3377b6d97b5b7e805fd0f7e.zip
FreeBSD-src-84fd88c1e567e9bbb3377b6d97b5b7e805fd0f7e.tar.gz
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
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/tests/gen/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/tests/gen/Makefile b/lib/libc/tests/gen/Makefile
index e5594a6..f99b9a8 100644
--- a/lib/libc/tests/gen/Makefile
+++ b/lib/libc/tests/gen/Makefile
@@ -76,6 +76,7 @@ CFLAGS+= -I${.CURDIR}
SRCS.fmtcheck2_test= fmtcheck_test.c
SRCS.fnmatch2_test= fnmatch_test.c
+TEST_METADATA.setdomainname_test+= is_exclusive=true
TESTS_SUBDIRS= execve
TESTS_SUBDIRS+= posix_spawn
OpenPOWER on IntegriCloud