Hi,

I'm sure you already love me :) Here's little something I hit recently.
Cheers
-- 
        Vlad
# The test new-exp1 used /tmp/x which is too common file to and might be
# already present. The test then fails with:
#
# run-new-exp
# ...
# 171,172c171
# < ./new-exp1.sub: line 8: /tmp/x: Permission denied
# < rm: cannot remove '/tmp/x': Permission denied
# ---
# > this is test 2

--- tests/new-exp1.sub  2016-12-07 07:06:57.268664317 +0000
+++ tests/new-exp1.sub  2016-12-07 07:06:13.299361999 +0000
@@ -5,7 +5,8 @@ expect()
 
 expect this is a test of proc subst
 cat <(echo this is a test of proc subst)
-echo this is test 2 > /tmp/x
+OUTFILE=${BASH_TSTOUT}.new-exp1
+echo this is test 2 > "$OUTFILE"
 expect this is test 2
-cat <(cat /tmp/x)
-rm -f /tmp/x
+cat <(cat "$OUTFILE")
+rm -f "$OUTFILE"

Reply via email to