diff options
author | asomers <asomers@FreeBSD.org> | 2017-08-25 12:16:03 +0000 |
---|---|---|
committer | asomers <asomers@FreeBSD.org> | 2017-08-25 12:16:03 +0000 |
commit | b285c9879f6c66a279ba6b2f88df46e9d3d5c683 (patch) | |
tree | 8b14c8544d46ab033076d9b2810430bc7d696c19 /lib | |
parent | 850ca22537d189a85a0453c45f05228af7e77e20 (diff) | |
download | FreeBSD-src-b285c9879f6c66a279ba6b2f88df46e9d3d5c683.zip FreeBSD-src-b285c9879f6c66a279ba6b2f88df46e9d3d5c683.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')
-rw-r--r-- | lib/libc/tests/gen/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/tests/gen/Makefile b/lib/libc/tests/gen/Makefile index fa3b727..fb6f190 100644 --- a/lib/libc/tests/gen/Makefile +++ b/lib/libc/tests/gen/Makefile @@ -71,6 +71,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 |