commit: 3c1631fd678b0c05b95a214e059707311b9720a0
parent 71488732777247defa6ec1654ab50d56124bb0db
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 24 Apr 2024 20:24:29 +0200
test-cmd/wc.t: Use empty file instead of /dev/null
Otherwise FreeBSD throws an ioctl error
https://builds.sr.ht/~lanodan/job/1204068
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/test-cmd/wc.t b/test-cmd/wc.t
@@ -35,8 +35,9 @@
wc: Failed reading from file '<stdin>': Bad file descriptor
[1]
- $ wc /dev/null
- 0 0 0 /dev/null
+ $ echo -n >empty
+ $ wc empty
+ 0 0 0 empty
$ wc /var/empty/e/no/ent
wc: Failed opening file '/var/empty/e/no/ent': No such file or directory
[1]