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