about summary refs log tree commit homepage
path: root/t/lib-reopen-logs.sh
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-18 23:09:09 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-18 23:09:09 -0700
commitdbb2e039fac19d9b74075fd79cddade534cafeca (patch)
treee17398443ea9fdac9aa239a7ea577ed7de6f6f14 /t/lib-reopen-logs.sh
parent9922b5e683e86c6df48931ee90da1c5e6ad419ef (diff)
downloadrainbows-dbb2e039fac19d9b74075fd79cddade534cafeca.tar.gz
Instead of using completely random names, we'll use
predictable ones since we already depend on them for
exit codes and such.  This drops our ability to run
the same test for the same version of Ruby in the
same working tree, but that's an unlikely scenario.

While we're at it, avoid remove tempfiles if a test
failed.  This should make debugging easier.
Diffstat (limited to 't/lib-reopen-logs.sh')
-rw-r--r--t/lib-reopen-logs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/lib-reopen-logs.sh b/t/lib-reopen-logs.sh
index 1bfa3a0..813f204 100644
--- a/t/lib-reopen-logs.sh
+++ b/t/lib-reopen-logs.sh
@@ -25,7 +25,7 @@ do
 done
 check_stderr
 
-rm $r_rot
+rm -f $r_rot
 mv $r_err $r_rot
 
 kill -USR1 $(cat $pid)