aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/expansion.in
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-10-27 20:48:39 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-11-24 01:51:07 -0800
commit83df5ea6608efac875c92bd7d2fb642b90236653 (patch)
tree04576f66ba1dd4d0af61827d6a5ab255a834f415 /tests/expansion.in
parente13d423b680015a75371f849b8f4bd57f5f7663c (diff)
Define a common `mktemp` for tests
GNU and BSD `mktemp` handle options differently, and it's a useful utility for tests. As such, define a common `mktemp` function wrapper for the test suite. It might actually be nice to expand this for more flags and support it globally, but that may result in confusion for any users of BSD mktemp that expect to be running /bin/mktemp.
Diffstat (limited to 'tests/expansion.in')
-rw-r--r--tests/expansion.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/expansion.in b/tests/expansion.in
index aab2b002..b43fd3bf 100644
--- a/tests/expansion.in
+++ b/tests/expansion.in
@@ -82,11 +82,10 @@ echo ()[1]
echo ()[d]
# Test tilde expansion
-# On OS X, we must pass an argument to mktemp,
-# and /tmp is symlinked to /private/tmp
+# On OS X, /tmp is symlinked to /private/tmp
# $PWD is our best bet for resolving it
set -l saved $PWD
-cd (mktemp -d /tmp/fish_tilde_XXXXXX)
+cd (mktemp -d)
set tmpdir $PWD
cd $saved
mkdir $tmpdir/realhome