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
This commit is contained in:
1 parent
c38910d9e7
commit
51dc57ab9c
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user