mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 01:04:10 +08:00
tests: Don't use mktemp -u
This works around a bug on FreeBSD 11.
This commit is contained in:
parent
5779d99a81
commit
6c1a2c1f30
@ -1,8 +1,12 @@
|
||||
# Store pwd to later go back before cleaning up
|
||||
set -l oldpwd (pwd)
|
||||
# Create a test directory to store our stuff.
|
||||
set -l base /tmp/cdcomp_test
|
||||
rm -Rf $base
|
||||
mkdir -p $base
|
||||
logmsg cd symlink non-resolution
|
||||
set real (mktemp -d)
|
||||
set link (mktemp -u)
|
||||
set link $base/link
|
||||
ln -s $real $link
|
||||
cd $link
|
||||
test "$PWD" = "$link" || echo "\$PWD != \$link:"\n "\$PWD: $PWD"\n "\$link: $link"\n
|
||||
@ -16,9 +20,6 @@ logmsg cd symlink completion
|
||||
# create directory $base/through/the/looking/glass
|
||||
# symlink $base/somewhere/teleport -> $base/through/the/looking/glass
|
||||
# verify that .. completions work
|
||||
set -l base /tmp/cdcomp_test/
|
||||
rm -Rf $base
|
||||
mkdir -p $base
|
||||
cd $base
|
||||
mkdir -p $base/through/the/looking/glass
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user