On 27/08/2023 00:28, Bruno Haible wrote:
On Alpine Linux 3.18 (x86), I see two test failures:
FAIL: tests/misc/usage_vs_getopt
FAIL: tests/cp/preserve-mode
The first one is new.
The second one I already reported in
https://lists.gnu.org/archive/html/coreutils/2023-03/msg00034.html
and you analyzed it in
https://lists.gnu.org/archive/html/coreutils/2023-03/msg00074.html
Find attached the log.
The log from the new failure is confusing.
Perhaps 'sleep' is a shell builtin here which is confusing things?
Does the following help (I don't have easy access to an alpine system):
diff --git a/tests/misc/usage_vs_getopt.sh b/tests/misc/usage_vs_getopt.sh
index 3ffb7b0b1..f4f12136a 100755
--- a/tests/misc/usage_vs_getopt.sh
+++ b/tests/misc/usage_vs_getopt.sh
@@ -87,7 +87,7 @@ for prg in $built_programs; do
'[' | expr | stty )
continue;;
# Wrap some utilities known by the shell by env.
- echo | false | kill | printf | pwd | test | true )
+ echo | false | kill | printf | pwd | sleep | test | true )
prg="env $prg";;
esac
checkprg $prg