patch 7.4.1520
Problem: Channel test: Waiting for a file to appear doesn't work.
Solution: In waitFor() ignore errors.
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim
index 15d849c..061b30c 100644
--- a/src/testdir/test_channel.vim
+++ b/src/testdir/test_channel.vim
@@ -103,9 +103,12 @@
" Wait for up to a second for "expr" to become true.
func s:waitFor(expr)
for i in range(100)
- if eval(a:expr)
- return
- endif
+ try
+ if eval(a:expr)
+ return
+ endif
+ catch
+ endtry
sleep 10m
endfor
endfunc