summaryrefslogtreecommitdiff
path: root/tests/readlink
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2014-07-01 08:32:57 -0700
committerJim Meyering <meyering@fb.com>2014-07-01 09:44:41 -0700
commit149a3b2c78d9adc35873df60660651605e88edb9 (patch)
tree4fe6708e13c565de221418fac9192eaa80d23408 /tests/readlink
parent8e764584fda9c153c1e1387b9f8fa2f2591c28ad (diff)
downloadcoreutils-149a3b2c78d9adc35873df60660651605e88edb9.tar.xz
tests: adapt tests to change in pwd's default
* tests/misc/pwd-option.sh (base): Initialize with -P, now that -L is the default, to accommodate an initial working directory with a symlink component. * tests/misc/readlink-fp-loop.sh: Use $(env pwd -P) to get the absolute working directory. Using "env" ensures we do not invoke any shell built-in, and PATH ensures we invoke the one from coreutils. * tests/readlink/can-e.sh: Likewise. * tests/readlink/can-f.sh: Likewise. * tests/readlink/can-m.sh: Likewise.
Diffstat (limited to 'tests/readlink')
-rwxr-xr-xtests/readlink/can-e.sh2
-rwxr-xr-xtests/readlink/can-f.sh2
-rwxr-xr-xtests/readlink/can-m.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/readlink/can-e.sh b/tests/readlink/can-e.sh
index 7da45f7c1..a6415b94b 100755
--- a/tests/readlink/can-e.sh
+++ b/tests/readlink/can-e.sh
@@ -20,7 +20,7 @@
print_ver_ readlink
pwd=$(pwd)
-my_pwd=$("$abs_top_builddir/src/pwd")
+my_pwd=$(env pwd -P)
tmp=d
mkdir $tmp || framework_failure_
diff --git a/tests/readlink/can-f.sh b/tests/readlink/can-f.sh
index 27fcb78bc..2a980fa84 100755
--- a/tests/readlink/can-f.sh
+++ b/tests/readlink/can-f.sh
@@ -20,7 +20,7 @@
print_ver_ readlink
pwd=$(pwd)
-my_pwd=$("$abs_top_builddir/src/pwd")
+my_pwd=$(env pwd -P)
tmp=d
mkdir $tmp || framework_failure_
diff --git a/tests/readlink/can-m.sh b/tests/readlink/can-m.sh
index 55ab4f2a5..768c552bb 100755
--- a/tests/readlink/can-m.sh
+++ b/tests/readlink/can-m.sh
@@ -20,7 +20,7 @@
print_ver_ readlink
pwd=$(pwd)
-my_pwd=$("$abs_top_builddir/src/pwd")
+my_pwd=$(env pwd -P)
tmp=d
mkdir $tmp || framework_failure_