diff options
| author | Pádraig Brady <P@draigBrady.com> | 2026-04-01 13:23:54 +0100 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2026-04-01 13:31:57 +0100 |
| commit | 178c48154d87e580cb421d8acc5605e6bb4aa56c (patch) | |
| tree | 80c208ff261753dc6fe6d5235aa3a6c0d9a28b48 | |
| parent | ee5092971ec8ce233f656445b81bde75e1fa9a3d (diff) | |
* tests/dd/misc.sh: test -w /dev/tty is not a strong enough check,
we need to actually open /dev/tty to ensure it's available.
It's not available under setsid for example.
| -rwxr-xr-x | tests/dd/misc.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dd/misc.sh b/tests/dd/misc.sh index e6559bf16..aa776b137 100755 --- a/tests/dd/misc.sh +++ b/tests/dd/misc.sh @@ -125,7 +125,7 @@ compare /dev/null $tmp_out || fail=1 compare err_ok err || fail=1 # Ensure of=/dev/tty is possible -if test -c /dev/tty && test -w /dev/tty; then +if test -c /dev/tty && >/dev/tty; then dd if=/dev/null of=/dev/tty || fail=1 fi |
