about summary refs log tree commit homepage
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-18 22:11:39 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-18 22:12:42 -0700
commit9922b5e683e86c6df48931ee90da1c5e6ad419ef (patch)
tree7612b7250b4a8882089e689220e4b409b4e9ede0 /t/test-lib.sh
parentc41a08821bf11eefebda3ea3e536eda8f4b4629b (diff)
downloadrainbows-9922b5e683e86c6df48931ee90da1c5e6ad419ef.tar.gz
If we're going to name a variable "fifo", it'll be for
descriptive reasons...
Diffstat (limited to 't/test-lib.sh')
-rwxr-xr-xt/test-lib.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 403e252..be2dce2 100755
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -72,9 +72,17 @@ require_check () {
 rtmpfiles () {
         for id in "$@"
         do
+                name=$id
                 _tmp=$(mktemp -t rainbows.$$.$id.XXXXXXXX)
                 eval "$id=$_tmp"
                 _TEST_RM_LIST="$_TEST_RM_LIST $_tmp"
+
+                case $name in
+                *fifo)
+                        rm -f $_tmp
+                        mkfifo $_tmp
+                        ;;
+                esac
         done
 }