Mercurial > vim
comparison src/testdir/test_profile.vim @ 24059:24887299c5ff v8.2.2571
patch 8.2.2571: test may leave file behind
Commit: https://github.com/vim/vim/commit/8c801b374b7d32419cd877353495b801c5e1382a
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 5 20:58:22 2021 +0100
patch 8.2.2571: test may leave file behind
Problem: Test may leave file behind.
Solution: Delete the temporary file. Don't profile in the running Vim
instance.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 05 Mar 2021 21:00:04 +0100 |
parents | 15408ab5fed7 |
children | 4c16acb2525f |
comparison
equal
deleted
inserted
replaced
24058:23565e0a7bfd | 24059:24887299c5ff |
---|---|
598 Func() | 598 Func() |
599 END | 599 END |
600 call writefile(lines, 'Xprofile_crash.vim') | 600 call writefile(lines, 'Xprofile_crash.vim') |
601 call system(GetVimCommandClean() . ' -es -c "so Xprofile_crash.vim" -c q') | 601 call system(GetVimCommandClean() . ' -es -c "so Xprofile_crash.vim" -c q') |
602 call assert_equal(0, v:shell_error) | 602 call assert_equal(0, v:shell_error) |
603 call CheckScriptSuccess(lines) | 603 call assert_true(readfile('Xprofile_crash.log')->len() > 10) |
604 call delete('Xprofile_crash.vim') | 604 call delete('Xprofile_crash.vim') |
605 call delete('Xprofile_crash.log') | 605 call delete('Xprofile_crash.log') |
606 endfunc | 606 endfunc |
607 | 607 |
608 func Test_vim9_nested_call() | 608 func Test_vim9_nested_call() |