mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27:14 -04:00
Problem: tests: testdir is a bit messy Solution: move test scripts into testdir/util/ directory src/testdir/ has become a dumping ground mixing test cases with utility functions. Let's fix this by moving all utility functions into the testdir/util/ directory Also a few related changes had to be done: - Update Filelist - update README.txt and mention the new directory layout - fix shadowbuild by linking the util directory into the shadow dir closes: #17677 Signed-off-by: Christian Brabandt <cb@256bit.org>
20 lines
604 B
VimL
20 lines
604 B
VimL
" This test is in a separate file, because it usually causes reports for memory
|
|
" leaks under valgrind. That is because when fork/exec fails memory is not
|
|
" freed. Since the process exits right away it's not a real leak.
|
|
|
|
CheckFeature terminal
|
|
|
|
func Test_terminal_redir_fails()
|
|
CheckUnix
|
|
|
|
let buf = term_start('xyzabc', {'err_io': 'file', 'err_name': 'Xfile'})
|
|
call TermWait(buf)
|
|
call WaitFor('len(readfile("Xfile")) > 0')
|
|
call assert_match('executing job failed', readfile('Xfile')[0])
|
|
call WaitFor('!&modified')
|
|
call delete('Xfile')
|
|
bwipe
|
|
endfunc
|
|
|
|
" vim: shiftwidth=2 sts=2 expandtab
|