Mercurial > vim
view src/testdir/test_findfile.vim @ 15162:d2ac3f2b44ba v8.1.0591
patch 8.1.0591: channel sort test is flaky
commit https://github.com/vim/vim/commit/6c8dd39df938c7502a740f59825feeaa5736b245
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 14 22:42:13 2018 +0100
patch 8.1.0591: channel sort test is flaky
Problem: Channel sort test is flaky.
Solution: Do not check if the job is running, it may have be done very fast.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 14 Dec 2018 22:45:06 +0100 |
parents | a479b7064550 |
children | 977a05589b65 |
line wrap: on
line source
" Test for findfile() " func Test_findfile() new let cwd=getcwd() cd .. " Tests may be run from a shadow directory, so an extra cd needs to be done to " get above src/ if fnamemodify(getcwd(), ':t') != 'src' cd ../.. else cd .. endif set ssl call assert_equal('src/testdir/test_findfile.vim', findfile('test_findfile.vim','src/test*')) exe "cd" cwd cd .. call assert_equal('testdir/test_findfile.vim', findfile('test_findfile.vim','test*')) call assert_equal('testdir/test_findfile.vim', findfile('test_findfile.vim','testdir')) exe "cd" cwd q! endfunc