From 48b19585b7f18fff930d61acccd4dcf540f3b605 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 19 Oct 2009 20:38:42 -0700 Subject: test-lib: avoid stalling due to bad FIFO handling Don't try to clobber FIFOs at startup since sometimes traps may not fire. And while we're at it, avoid trying to unlink them twice. --- t/test-lib.sh | 6 ++++-- 1 file 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 } -- cgit v1.2.3-24-ge0c7