Project Info Name.......: gnu-hello
Description: GNU Hello


gnu-hello       
Info
Commit...:66f4cdde6b72b7f2114b0d243ae229541d0b0742
Author...:Reuben Thomas
Committer:Reuben Thomas
Date.....:Thu Jan 27 10:19:04 2022 +0000
Parents..:c800f9f845e7bcc66eff93e9f3e378e3a89c2bc9

Message
tests: remove multibyte-1 test

There is no way to make wide character conversion fail reliably: in
particular, some libc’s, such as musl, allow conversion even in the C
locale; and glibc allows it in 8-bit locales.

Changes
diff --git a/Makefile.am b/Makefile.am
line changes: +0/-1
index 6200efb..b0549da
--- a/Makefile.am
+++ b/Makefile.am
@@ -65,7 +65,6 @@ TESTS = \
 	tests/greeting-2 \
 	tests/hello-1 \
 	tests/last-1 \
-	tests/multibyte-1 \
 	tests/operand-1 \
 	tests/traditional-1
 

diff --git a/tests/multibyte-1 b/tests/multibyte-1
line changes: +0/-38
index f44cbe8..0000000
--- a/tests/multibyte-1
+++ /dev/null
@@ -1,38 +0,0 @@
-#! /bin/sh
-# Test multibyte --greeting.
-#
-# Copyright (C) 2019 Free Software Foundation, Inc.
-#
-# Copying and distribution of this file, with or without modification,
-# are permitted in any medium without royalty provided the copyright
-# notice and this notice are preserved.
-
-trap 'rm -fr $tmpfiles' 1 2 3 15
-
-# Cause multibyte conversion failure.
-LANGUAGE=
-LC_ALL=C
-LC_MESSAGES=
-LANG=
-export LANGUAGE LC_ALL LC_MESSAGES LANG
-
-tmpfiles="multibyte-test1.ok"
-cat <<EOF >multibyte-test1.ok
-hello: conversion to a multibyte string failed: Invalid or incomplete multibyte or wide character
-EOF
-
-tmpfiles="$tmpfiles multibyte-test1.out"
-: ${HELLO=hello}
-${HELLO} -g 'hello 世界' 2>&1 | tr -d '\r' >multibyte-test1.out
-
-# remove \r (CR) characters from the output, so that the tests work on
-# platforms with CRLF line endings.  There is apparently no reliable
-# method (across Cygwin, MingW, etc.) to force an eol style.
-
-: ${DIFF=diff}
-${DIFF} multibyte-test1.ok multibyte-test1.out
-result=$?
-
-rm -fr $tmpfiles
-
-exit $result

This website is licensed under AGPL-3.0. Feel free to copy!