diff options
author | Jim Meyering <meyering@fb.com> | 2014-07-01 08:32:57 -0700 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2014-07-01 09:44:41 -0700 |
commit | 149a3b2c78d9adc35873df60660651605e88edb9 (patch) | |
tree | 4fe6708e13c565de221418fac9192eaa80d23408 /tests/misc/readlink-fp-loop.sh | |
parent | 8e764584fda9c153c1e1387b9f8fa2f2591c28ad (diff) | |
download | coreutils-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/misc/readlink-fp-loop.sh')
-rwxr-xr-x | tests/misc/readlink-fp-loop.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/misc/readlink-fp-loop.sh b/tests/misc/readlink-fp-loop.sh index 286da6ffb..4ae2dc523 100755 --- a/tests/misc/readlink-fp-loop.sh +++ b/tests/misc/readlink-fp-loop.sh @@ -18,7 +18,7 @@ . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ readlink -cwd=$("$abs_top_builddir/src/pwd") +cwd=$(env pwd -P) # To trigger this bug, we have to construct a name/situation during # the resolution of which the code dereferences the same symlink (S) |