about summary refs log tree commit homepage
path: root/t/test-lib.sh
diff options
context:
space:
mode:
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
 }