1
0
mirror of https://git.savannah.gnu.org/git/coreutils.git synced 2026-10-24 02:08:57 +03:00

tests: fix currently always skipped test

* tests/misc/tty-quoting.sh: Since commit v9.12-10-g782a1e5bc,
env(1) calls isatty() and thus induces another ioctl()
which causes the test to skip.  The env(1) is redundant anyway
as strace will avoid shell builtins, so just remove the redundant
env calls.
This commit is contained in:
Pádraig Brady
2026-10-11 22:45:49 +01:00
parent 2950a3d53d
commit e1bb670aff

View File

@@ -36,12 +36,12 @@ run_tty_ ()
grep 'ioctl.*TCGETS' run_tty.strace >/dev/null
}
run_tty_ env test -t 1 ||
run_tty_ test -t 1 ||
skip_ 'strace cannot make standard output appear to be a terminal'
# We're redirecting to file so this doesn't happen on glibc
# but be defensive on systems that might probe in this case.
run_tty_ env printf foo >printf.t &&
run_tty_ printf foo >printf.t &&
skip_ 'libc buffering induced a tty probe'
for cmd in basename du dirname 'ls -w0' readlink 'realpath --relative-to=.' \