From f6fd014d89fa62baf97216afe7f8577277ecbb46 Mon Sep 17 00:00:00 2001 From: Thomas Mader Date: Sat, 27 Jan 2018 09:36:47 +0100 Subject: [PATCH] Fix random stall of issue884 test (https://github.com/dlang/dub/pull/1354) --- test/issue884-init-defer-file-creation.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/issue884-init-defer-file-creation.sh b/test/issue884-init-defer-file-creation.sh index 013842c0c..7ffab211c 100755 --- a/test/issue884-init-defer-file-creation.sh +++ b/test/issue884-init-defer-file-creation.sh @@ -9,8 +9,11 @@ mkdir ${TMPDIR} cd ${TMPDIR} # kill dub init during interactive mode -${DUB} init <(while :; do sleep 1; done) & +mkfifo in +${DUB} init < in & +sleep 1 kill $! +rm in # ensure that no files are left behind NFILES_PLUS_ONE=`ls -la | wc -l`