about summary refs log tree commit diff
path: root/string/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'string/Makefile')
-rw-r--r--string/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/string/Makefile b/string/Makefile
index 206c9b103c..c5b8909f37 100644
--- a/string/Makefile
+++ b/string/Makefile
@@ -65,7 +65,14 @@ tests		:= tester inl-tester noinl-tester testcopy test-ffs	\
 		   test-endian-sign-conversion tst-memmove-overflow	\
 		   test-sig_np
 
-tests-container += tst-strsignal tst-strerror
+# Both tests require the .mo translation files generated by msgfmt.
+tests-translation := tst-strsignal					\
+		     tst-strerror
+
+tests-container   += $(tests-translation)
+ifeq ($(MSGFMT),:)
+tests-unsupported += $(tests-translation)
+endif
 
 # This test allocates a lot of memory and can run for a long time.
 xtests = tst-strcoll-overflow