]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/run-errors
Bash-4.4 distribution sources and documentation
[thirdparty/bash.git] / tests / run-errors
index 6be4e0c7b3b5a33dfb9ce733c3ecc6c50f459dce..29417cda133150fcd3ff8ba012d7238e5df9f721 100644 (file)
@@ -1,2 +1,3 @@
-${THIS_SH} ./errors.tests > /tmp/xx 2>&1
-diff /tmp/xx errors.right && rm -f /tmp/xx
+unset OLDPWD   # make sure shell doesn't inherit OLDPWD
+${THIS_SH} ./errors.tests > ${BASH_TSTOUT} 2>&1
+diff ${BASH_TSTOUT} errors.right && rm -f ${BASH_TSTOUT}