Mercurial > vim
comparison src/testdir/test_terminal.vim @ 29970:d891115c0aea v9.0.0323
patch 9.0.0323: using common name in tests leads to flaky tests
Commit: https://github.com/vim/vim/commit/3b0d70f4ff436cb144683dafd956e8a3ee485a90
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 29 22:31:20 2022 +0100
patch 9.0.0323: using common name in tests leads to flaky tests
Problem: Using common name in tests leads to flaky tests.
Solution: Rename files and directories to be more specific.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 Aug 2022 23:45:04 +0200 |
parents | 25480d36bff5 |
children | 86eb4aba16c3 |
comparison
equal
deleted
inserted
replaced
29969:5f2d38cacd6c | 29970:d891115c0aea |
---|---|
628 let cmd = 'cmd /c cd' | 628 let cmd = 'cmd /c cd' |
629 else | 629 else |
630 CheckExecutable pwd | 630 CheckExecutable pwd |
631 let cmd = 'pwd' | 631 let cmd = 'pwd' |
632 endif | 632 endif |
633 call mkdir('Xdir') | 633 call mkdir('Xtermdir') |
634 let buf = term_start(cmd, {'cwd': 'Xdir'}) | 634 let buf = term_start(cmd, {'cwd': 'Xtermdir'}) |
635 call WaitForAssert({-> assert_equal('Xdir', fnamemodify(getline(1), ":t"))}) | 635 call WaitForAssert({-> assert_equal('Xtermdir', fnamemodify(getline(1), ":t"))}) |
636 | 636 |
637 exe buf . 'bwipe' | 637 exe buf . 'bwipe' |
638 call delete('Xdir', 'rf') | 638 call delete('Xtermdir', 'rf') |
639 endfunc | 639 endfunc |
640 | 640 |
641 func Test_terminal_cwd_failure() | 641 func Test_terminal_cwd_failure() |
642 " Case 1: Provided directory is not actually a directory. Attempt to make | 642 " Case 1: Provided directory is not actually a directory. Attempt to make |
643 " the file executable as well. | 643 " the file executable as well. |