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