From e3d46a63375c84b7bd409f1f07ef56eb985eae50 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 20 Feb 2026 06:53:33 +0800 Subject: 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. --- test/functional/vimscript/system_spec.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'test/functional/vimscript/system_spec.lua') 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"')]]) -- cgit