077c9d
commit 439bf53496d6ed5fcef1d2e71793b46369f8205f
077c9d
Author: Florian Weimer <fweimer@redhat.com>
077c9d
Date:   Wed Apr 24 07:31:29 2019 +0200
077c9d
077c9d
    locale/tst-locale-locpath: Run test only for $(run-built-tests) == yes
077c9d
077c9d
diff --git a/locale/Makefile b/locale/Makefile
077c9d
index 42bb36c7d374eebe..23a71321b6646c49 100644
077c9d
--- a/locale/Makefile
077c9d
+++ b/locale/Makefile
077c9d
@@ -28,7 +28,6 @@ routines	= setlocale findlocale loadlocale loadarchive \
077c9d
 		  localeconv nl_langinfo nl_langinfo_l mb_cur_max \
077c9d
 		  newlocale duplocale freelocale uselocale
077c9d
 tests		= tst-C-locale tst-locname tst-duplocale
077c9d
-tests-special	= $(objpfx)tst-locale-locpath.out
077c9d
 categories	= ctype messages monetary numeric time paper name \
077c9d
 		  address telephone measurement identification collate
077c9d
 aux		= $(categories:%=lc-%) $(categories:%=C-%) SYS_libc C_name \
077c9d
@@ -61,6 +60,10 @@ lib-modules		:= charmap-dir simple-hash xmalloc xstrdup \
077c9d
 GPERF = gperf
077c9d
 GPERFFLAGS = -acCgopt -k1,2,5,9,$$ -L ANSI-C
077c9d
 
077c9d
+ifeq ($(run-built-tests),yes)
077c9d
+tests-special += $(objpfx)tst-locale-locpath.out
077c9d
+endif
077c9d
+
077c9d
 include ../Rules
077c9d
 
077c9d
 CFLAGS-md5.c += -I../crypt