summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-01-03 12:58:37 +0100
committerJim Meyering <meyering@redhat.com>2012-01-03 12:58:37 +0100
commit520b69ce36a71f83772e7d2bfeed7aefd1bc4f6f (patch)
treea73225907dc68276389ae0315ed309d62b637ae3 /tests
parent77ea441f79aa115f79b47d9c1fc9c0004c5c7111 (diff)
downloadcoreutils-520b69ce36a71f83772e7d2bfeed7aefd1bc4f6f.tar.xz
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
Diffstat (limited to 'tests')
-rwxr-xr-xtests/misc/realpath6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/misc/realpath b/tests/misc/realpath
index 4b1e1f117..fb0139367 100755
--- a/tests/misc/realpath
+++ b/tests/misc/realpath
@@ -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