logo

utils-std

Collection of commonly available Unix tools
commit: 73090d1f5b34a8eaf35423037b1cf8ce8559c5a9
parent 6df795f43243d0a1e27af5546059acb4c36d80b4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 30 Jul 2024 10:00:08 +0200

test-cmd/realpath.sh: Don't assume /var/empty exists

As it is absent on NetBSD

Diffstat:

Mtest-cmd/realpath.sh11+----------
1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/test-cmd/realpath.sh b/test-cmd/realpath.sh @@ -3,7 +3,7 @@ # SPDX-License-Identifier: MPL-2.0 target="$(dirname "$0")/../cmd/realpath" -plans=30 +plans=26 . "$(dirname "$0")/tap.sh" t . '.' "${PWD} @@ -15,13 +15,6 @@ t /var /var '/var ' t /var/empty /var/empty '/var/empty ' -t /var/empty/foo /var/empty/foo '/var/empty/foo -' -t /var/empty/foo/ /var/empty/foo/ '/var/empty/foo -' -t /var/empty/foo// /var/empty/foo// '/var/empty/foo -' - t --exit=1 /var/empty/foo/bar /var/empty/foo/bar 'realpath: Failed canonilizing parent of full path "/var/empty/foo/bar": No such file or directory ' t --exit=1 /var/empty/foo/bar/ /var/empty/foo/bar/ 'realpath: Failed canonilizing parent of full path "/var/empty/foo/bar": No such file or directory @@ -33,8 +26,6 @@ t e:/ '-e /' '/ ' t e:/var '-e /var' '/var ' -t e:/var/empty '-e /var/empty' '/var/empty -' t --exit=1 e:/var/empty/foo '-e /var/empty/foo' 'realpath: Failed canonilizing "/var/empty/foo": No such file or directory ' t --exit=1 e:/var/empty/foo/ '-e /var/empty/foo/' 'realpath: Failed canonilizing "/var/empty/foo/": No such file or directory