mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: adjust realpath test to avoid "make distcheck" failure
* tests/misc/realpath: Quote lhs of test ... = ..., so that when $PWD contains a space (like it does via "make distcheck"), the test does not fail
This commit is contained in:
1 parent
77ea441f79
commit
520b69ce36
1 file changed
+3
-3
+3
-3
@@ -41,9 +41,9 @@ realpath -m '' && fail=1
|
||||
|
||||
# symlink resolution
|
||||
this=$(realpath .)
|
||||
test $(realpath $relative ldir2/..) = "$this/dir1" || fail=1
|
||||
test $(realpath -L $relative ldir2/..) = "$this" || fail=1
|
||||
test $(realpath -s $relative ldir2) = "$this/ldir2" || fail=1
|
||||
test "$(realpath $relative ldir2/..)" = "$this/dir1" || fail=1
|
||||
test "$(realpath -L $relative ldir2/..)" = "$this" || fail=1
|
||||
test "$(realpath -s $relative ldir2)" = "$this/ldir2" || fail=1
|
||||
|
||||
# relative string handling
|
||||
test $(realpath -m --relative-to=prefix prefixed/1) = '../prefixed/1' || fail=1
|
||||
|
||||
Reference in new issue
Block a user