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