From 51dc57ab9cdb6a5470cd2c516d9bbfdda1828b50 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 30 Jul 2015 09:47:25 -0700 Subject: [PATCH] tests: avoid false-failure on system with no ja_JP.eucJP locale * testsuite/invalid-mb-seq-UMR.sh: Use the configure-detected locale name, $LOCALE_JA, rather than hard-coding ja_JP.eucJP. If the required type of locale was not detected, then skip this test. Reported by Assaf Gordon in http://bugs.gnu.org/21124 --- testsuite/invalid-mb-seq-UMR.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testsuite/invalid-mb-seq-UMR.sh b/testsuite/invalid-mb-seq-UMR.sh index d74b5be..f631e24 100755 --- a/testsuite/invalid-mb-seq-UMR.sh +++ b/testsuite/invalid-mb-seq-UMR.sh @@ -21,9 +21,11 @@ print_ver_ sed require_valgrind_ +test "$LOCALE_JA" = none && skip_ found no Japanese EUC locale + echo a > in || framework_failure_ echo bC > exp || framework_failure_ -LC_ALL=ja_JP.eucJP valgrind --quiet --error-exitcode=1 \ +LC_ALL=$LOCALE_JA valgrind --quiet --error-exitcode=1 \ sed -e 's/a/b\U\xb2c/' in > out 2> err || fail=1 # Work around a bug in CentOS 5.10's valgrind -- 2.3.7