Fix the build with WITHOUT_GOOGLETEST

Attempting to build the fusefs tests WITHOUT_GOOGLETEST will result in an
error if the host system or sysroot doesn't already have googletest headers
in /usr/include/private (e.g. host built/installed WITHOUT_GOOGLETEST, clean
cross-buildworld WITHOUT_GOOGLETEST).

Reviewed by:	asomers
Differential Revision:	https://reviews.freebsd.org/D21367
This commit is contained in:
Kyle Evans 2019-08-22 19:10:31 +00:00
parent 299e2c58b7
commit 92a8983bab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351399

View File

@ -1,5 +1,6 @@
# $FreeBSD$
.include <src.opts.mk>
.include <bsd.compiler.mk>
PACKAGE= tests
@ -9,7 +10,8 @@ TESTSDIR= ${TESTSBASE}/sys/fs
TESTSRC= ${SRCTOP}/contrib/netbsd-tests/fs
#TESTS_SUBDIRS+= nullfs # XXX: needs rump
.if ${COMPILER_FEATURES:Mc++14}
# fusefs tests cannot be compiled/used without the googletest infrastructure.
.if ${COMPILER_FEATURES:Mc++14} && ${MK_GOOGLETEST} != "no"
TESTS_SUBDIRS+= fusefs
.endif
TESTS_SUBDIRS+= tmpfs