[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ls/line-separator test fails
|
From: |
Bruno Haible |
|
Subject: |
Re: ls/line-separator test fails |
|
Date: |
Tue, 17 Nov 2026 06:13:13 +0100 |
PƔdraig Brady wrote:
> > In today's CI run, the ls/line-separator test fails on
> > - Alpine Linux
> > - macOS
> > - FreeBSD
> > - NetBSD
> > - Solaris 11.4
> ...
> So I pushed this commit to skip the test on such systems:
> https://github.com/coreutils/coreutils/commit/9aeb2eeb0
In today's CI run, the test no longer fails on macOS, FreeBSD, Solaris.
It only fails in Alpine Linux and NetBSD.
Log from Alpine Linux:
FAIL: tests/ls/line-separator
=============================
+ initial_cwd_=/work/coreutils-2026-11-17/build
+ testdir_prefix_
+ printf gt
+ pfx_=gt
+ mktempd_ /work/coreutils-2026-11-17/build gt-line-separator.sh.XXXX
+ destdir_=/work/coreutils-2026-11-17/build
+ template_=gt-line-separator.sh.XXXX
+ MAX_TRIES_=4
+ destdir_slash_=/work/coreutils-2026-11-17/build/
+ unset TMPDIR
+ d=/work/coreutils-2026-11-17/build/gt-line-separator.sh.y5mL
+ :
+ test -d /work/coreutils-2026-11-17/build/gt-line-separator.sh.y5mL
+ ls -dgo /work/coreutils-2026-11-17/build/gt-line-separator.sh.y5mL
+ perms='drwx------ 2 4096 Nov 17 02:17
/work/coreutils-2026-11-17/build/gt-line-separator.sh.y5mL'
+ :
+ echo /work/coreutils-2026-11-17/build/gt-line-separator.sh.y5mL
+ return
+ test_dir_=/work/coreutils-2026-11-17/build/gt-line-separator.sh.y5mL
+ cd /work/coreutils-2026-11-17/build/gt-line-separator.sh.y5mL
+ srcdir=../..
+ builddir=..
+ export srcdir builddir
+ gl_init_sh_nl_='
'
+ IFS='
'
+ expr 1 + 128
+ eval 'trap '"'"'Exit 129'"'"' 1'
+ trap 'Exit 129' 1
+ expr 2 + 128
+ eval 'trap '"'"'Exit 130'"'"' 2'
+ trap 'Exit 130' 2
+ expr 3 + 128
+ eval 'trap '"'"'Exit 131'"'"' 3'
+ trap 'Exit 131' 3
+ expr 13 + 128
+ eval 'trap '"'"'Exit 141'"'"' 13'
+ trap 'Exit 141' 13
+ expr 15 + 128
+ eval 'trap '"'"'Exit 143'"'"' 15'
+ trap 'Exit 143' 15
+ saved_IFS='
'
+ IFS=:
+ new_PATH=
+ IFS='
'
+ test -d /work/coreutils-2026-11-17/build/src/.
+ new_PATH=/work/coreutils-2026-11-17/build/src
+ IFS='
'
+ test -d /usr/local/bin/.
+ new_PATH=/work/coreutils-2026-11-17/build/src:/usr/local/bin
+ IFS='
'
+ test -d /usr/sbin/.
+ new_PATH=/work/coreutils-2026-11-17/build/src:/usr/local/bin:/usr/sbin
+ IFS='
'
+ test -d /usr/bin/.
+
new_PATH=/work/coreutils-2026-11-17/build/src:/usr/local/bin:/usr/sbin:/usr/bin
+ IFS='
'
+ test -d /sbin/.
+
new_PATH=/work/coreutils-2026-11-17/build/src:/usr/local/bin:/usr/sbin:/usr/bin:/sbin
+ IFS='
'
+ test -d /bin/.
+
new_PATH=/work/coreutils-2026-11-17/build/src:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ IFS='
'
+
PATH=/work/coreutils-2026-11-17/build/src:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ export PATH
+ trap remove_tmp_ EXIT
+ path_prepend_ ./src
+ test 1 '!=' 0
+ path_dir_=./src
+ abs_path_dir_=/work/coreutils-2026-11-17/build/./src
+
PATH=/work/coreutils-2026-11-17/build/./src:/work/coreutils-2026-11-17/build/src:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ create_exe_shims_ /work/coreutils-2026-11-17/build/./src
+ return 0
+ shift
+ test 0 '!=' 0
+ export PATH
+ print_ver_ ls printf
+ require_built_ ls printf
+ skip_=no
+ test no '=' yes
+ test yes '=' yes
+ local i
+ env ls --version
ls (GNU coreutils) 2026-11-17
Copyright (C) 2026 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Richard M. Stallman and David MacKenzie.
+ env printf --version
printf (GNU coreutils) 2026-11-17
Copyright (C) 2026 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie.
+ test -n fr_FR.UTF-8
+ test fr_FR.UTF-8 '!=' none
+ LC_ALL=fr_FR.UTF-8
+ export LC_ALL
+ printable '\u2028'
+ env printf '\u2028'
+ env printf '%q' '
'
+ env printf '\u2028'
+ test ''"''"'$'"'"'\342\200\250'"'" '=' '
'
+ printable '\u2029'
+ env printf '\u2029'
+ env printf '%q' '
'
+ env printf '\u2029'
+ test ''"''"'$'"'"'\342\200\251'"'" '=' '
'
+ printf 'a\303\251'
+ e='aƩ'
+ mkdir d
+ printf 'p\342\200\251q'
+ printf 'x\342\200\250y'
+ touch 'd/aƩ' 'd/p
q' 'd/x
y'
+ printf '%s\n' 'aƩ' 'p\342\200\251q' 'x\342\200\250y'
+ ls -b d
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 '=' 2
+ test xexp '=' x/dev/null
+ test xout '=' x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C diff -u exp out
+ printf '%s\n' '"aƩ"' '"p\342\200\251q"' '"x\342\200\250y"'
+ ls '--quoting-style=c' d
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 '=' 2
+ test xexp '=' x/dev/null
+ test xout '=' x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C diff -u exp out
+ printf 'p\342\200\251q'
+ printf 'x\342\200\250y'
+ env printf '%q\n' 'aƩ' 'p
q' 'x
y'
+ ls '--quoting-style=shell-escape' d
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 '=' 2
+ test xexp '=' x/dev/null
+ test xout '=' x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C diff -u exp out
+ printf '%s\n' 'aƩ' 'p?q' 'x?y'
+ ls -q d
+ compare exp out
+ compare_dev_null_ exp out
+ test 2 '=' 2
+ test xexp '=' x/dev/null
+ test xout '=' x/dev/null
+ return 2
+ compare_ exp out
+ LC_ALL=C diff -u exp out
--- exp
+++ out
@@ -1,3 +1,3 @@
aƩ
-p?q
-x?y
+p
q
+x
y
+ fail=1
+ Exit 1
+ set +e
+ exit 1
+ exit 1
+ remove_tmp_
+ __st=1
+ cleanup_
+ :
+ test '=' yes
+ cd /work/coreutils-2026-11-17/build
+ chmod -R u+rwx /work/coreutils-2026-11-17/build/gt-line-separator.sh.y5mL
+ rm -rf /work/coreutils-2026-11-17/build/gt-line-separator.sh.y5mL
+ exit 1
FAIL tests/ls/line-separator.sh (exit status: 1)
Log from NetBSD:
FAIL: tests/ls/line-separator
=============================
--- exp 2026-11-17 02:19:52.579421138 +0000
+++ out 2026-11-17 02:19:52.581039312 +0000
@@ -1,3 +1,3 @@
aƩ
-p?q
-x?y
+p
q
+x
y
FAIL tests/ls/line-separator.sh (exit status: 1)