about summary refs log tree commit diff
path: root/Test/ztst.zsh
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-12-26 22:57:23 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-12-26 22:57:23 +0000
commit419c5e01d3b5b9b646e73c1d4ed7d30aeec6ca27 (patch)
treee91a73d149ee8ad01203919c54d9390be6a41418 /Test/ztst.zsh
parentc116c3ddbd3768b6c881818335d7e0eb3ab449cd (diff)
downloadzsh-419c5e01d3b5b9b646e73c1d4ed7d30aeec6ca27.tar.gz
zsh-419c5e01d3b5b9b646e73c1d4ed7d30aeec6ca27.tar.xz
zsh-419c5e01d3b5b9b646e73c1d4ed7d30aeec6ca27.zip
zsh-workers/9159
Diffstat (limited to 'Test/ztst.zsh')
-rwxr-xr-xTest/ztst.zsh3
1 files changed, 3 insertions, 0 deletions
diff --git a/Test/ztst.zsh b/Test/ztst.zsh
index 8ce94fca1..7e82f8a5b 100755
--- a/Test/ztst.zsh
+++ b/Test/ztst.zsh
@@ -43,6 +43,9 @@ ZTST_mainopts=(${(kv)options})
 ZTST_testdir=$PWD
 ZTST_testname=$1
 
+# The source directory is not necessarily the current directory
+ZTST_srcdir=${0%/*}
+
 : ${TMPPREFIX:=/tmp/zsh}
 # Temporary files for redirection inside tests.
 ZTST_in=${TMPPREFIX}.ztst.in.$$