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.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 86476e0..34f0de1 100755
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -90,9 +90,7 @@ rtmpfiles () {
         do
                 name=$id
                 _tmp=$t_pfx.$id
-                > $_tmp
                 eval "$id=$_tmp"
-                _TEST_OK_RM_LIST="$_TEST_OK_RM_LIST $_tmp"
 
                 case $name in
                 *fifo)
@@ -100,6 +98,10 @@ rtmpfiles () {
                         mkfifo $_tmp
                         _TEST_RM_LIST="$_TEST_RM_LIST $_tmp"
                         ;;
+                *)
+                        > $_tmp
+                        _TEST_OK_RM_LIST="$_TEST_OK_RM_LIST $_tmp"
+                        ;;
                 esac
         done
 }