diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-02-20 06:53:33 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-20 06:53:33 +0800 |
| commit | e3d46a63375c84b7bd409f1f07ef56eb985eae50 (patch) | |
| tree | 8abacd32ada06bbeddfb6d707283a7a2dc8e297e /test/functional/vimscript/system_spec.lua | |
| parent | 785ac9f2285a413751ce963082469598aa81f74e (diff) | |
| download | rneovim-e3d46a63375c84b7bd409f1f07ef56eb985eae50.tar.gz rneovim-e3d46a63375c84b7bd409f1f07ef56eb985eae50.tar.bz2 rneovim-e3d46a63375c84b7bd409f1f07ef56eb985eae50.zip | |
test: start test runners in Xtest_xdg dir (#37964)
This is a better way to prevent parallel tests from interfering with
each other, as there are many ways files can be created and deleted in
tests, so enforcing different file names is hard.
Using $TMPDIR can also work in most cases, but 'backipskip' etc. have
special defaults for $TMPDIR.
Symlink runtime/, src/, test/ and README.md to Xtest_xdg dir to make
tests more convenient (and symlinking test/ is required for busted).
Also, use README.md instead of test/README.md in the Ex mode inccommand
test, as test/README.md no longer contains 'N' char.
Diffstat (limited to 'test/functional/vimscript/system_spec.lua')
| -rw-r--r-- | test/functional/vimscript/system_spec.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/functional/vimscript/system_spec.lua b/test/functional/vimscript/system_spec.lua index 54650caa71..67a613d848 100644 --- a/test/functional/vimscript/system_spec.lua +++ b/test/functional/vimscript/system_spec.lua @@ -131,11 +131,16 @@ describe('system()', function() before_each(function() screen = Screen.new() + t.write_file('Xmorefile', ('line1\nline2\nline3\n'):rep(10)) + end) + + after_each(function() + os.remove('Xmorefile') end) if is_os('win') then local function test_more() - eq('root = true', eval([[get(split(system('"more" ".editorconfig"'), "\n"), 0, '')]])) + eq('line1', eval([[get(split(system('"more" "Xmorefile"'), "\n"), 0, '')]])) end local function test_shell_unquoting() eval([[system('"ping" "-n" "1" "127.0.0.1"')]]) |