aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir/shared.vim
Commit message (Collapse)AuthorAge
* vim-patch:9.1.0095: tests: test_restricted() failsJan Edmund Lazo2026-06-09
| | | | | | | | | | | Problem: tests: test_restricted() fails (after: v9.1.0091) Solution: Add a space before the pipecmd and the actual Vim command to run https://github.com/vim/vim/commit/52eb0b867704e43049cb396e64cadb5bd9a3ad0b Co-authored-by: Christian Brabandt <cb@256bit.org>
* vim-patch:9.0.2082: test_channel may fail because of IPv6 config issueJan Edmund Lazo2026-06-09
| | | | | | | | | | | | | | | | | | | | | | | Problem: test_channel may fail because of IPv6 config issues Solution: Catch and skip the test, if getaddrinfo() fails with 'Address family not supported' Mark tests as skipped when ch_open encounters E901 On some of the Debian build systems, the IPv6 channel tests fail because `ch_open('[::1]:<port>', ...)` raises the error "E901: getaddrinfo() in channel_open(): Address family for hostname not supported". This appears to happen because getaddrinfo() can't perform the reverse lookup for the ::1, which is a config issue on that system. Therefore, instead of reporting a test failure, mark the test as skipped due to the bad network config closes: vim/vim#13473 https://github.com/vim/vim/commit/43cb8e1c3b60f6fcd30a9a0f9b01b86d640b2165 Co-authored-by: James McCoy <jamessan@jamessan.com>
* vim-patch:9.0.0856: MS-Windows: executable not found when running test (#39002)Jan Edmund Lazo2026-04-13
| | | | | | | | Problem: MS-Windows: executable not found when running individual test. Solution: Also look for vimd.exe. (Christopher Plewright, closes vim/vim#11525) https://github.com/vim/vim/commit/d55bfcaa9b140c50cddf56a2c614f05f2f6f2533 Co-authored-by: Christopher Plewright <chris@createng.com>
* vim-patch:9.0.0354: MS-Windows: starting a python server for test sometimes ↵Jan Edmund Lazo2026-04-13
| | | | | | | | | | fails (#38998) Problem: MS-Windows: starting a python server for test sometimes fails. Solution: Increase the waiting time for the port. https://github.com/vim/vim/commit/a906e8e1abf0a4c9a058ec5ee8a4c321a008cd41 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:partial:9.1.1110: Vim tests are slow and flakyzeertzjq2025-10-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Vim tests are slow and flaky at the same time due to reliance on timeouts which are unreliable. Solution: improve Vim test performance and reduce flakiness (Yee Cheng Chin) A lot of Vim tests currently rely on waiting a specific amount of time before asserting a condition. This is bad because 1) it is slow, as the timeout is hardcoded, 2) it's unreliable as a resource-starved runner may overshoot the timeout. Also, there are a lot of builtin sleep commands in commonly used utilities like VerifyScreenDump and WaitFor() which leads to a lot of unnecessary idle time. Fix these issues by doing the following: 1. Make utilities like VerifyScreenDump and WaitFor use the lowest wait time possible (1 ms). This essentially turns it into a spin wait. On fast machines, these will finish very quickly. For existing tests that had an implicit reliance on the old timeouts (e.g. VerifyScreenDump had a 50ms wait before), fix the tests to wait that specific amount explicitly. 2. Fix tests that sleep or wait for long amounts of time to instead explicitly use a callback mechanism to be notified when a child terminal job has finished. This allows the test to only take as much time as possible instead of having to hard code an unreliable timeout. With these fixes, tests should 1) completely quickly on fast machines, and 2) on slow machines they will still run to completion albeit slowly. Note that previoulsy both were not true. The hardcoded timeouts meant that on fast machines the tests were mostly idling wasting time, whereas on slow machines, the timeouts often were not generous enough to allow them to run to completion. closes: vim/vim#16615 https://github.com/vim/vim/commit/e70587dbdbb1aba2c3f92490b8f870361d4a4177 Part of shared.vim and test_crash.vim changes only. Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
* vim-patch:9.1.0841: tests: still preferring python2 over python3 (#31083)zeertzjq2024-11-04
| | | | | | | | | | | | | | | | | | | Problem: tests: still preferring python2 over python3 Solution: prefer Python 3 when picking a Python program in Vim tests, by checking for the more specific python version first and only when python3 not found, check for the python binary (Yee Cheng Chin) Most OSes have Python 3 mapped to `python3` instead of `python`. Vim tests should prioritize using that instead of Python 2 in case that is still installed on the host system. closes: vim/vim#15986 https://github.com/vim/vim/commit/cef8ab2c75841cee1cd72266aa662fbe54fc0acc Cherry-pick test changes from patch 8.2.{2824,4684}. Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
* vim-patch:9.1.0794: tests: tests may fail on Windows environment (#30874)zeertzjq2024-10-20
| | | | | | | | | | | | | | Problem: tests: tests may fail on Windows environment Solution: use shellcmdflag=/D to skip executing autorun from the registry (Milly) closes: vim/vim#15900 https://github.com/vim/vim/commit/4f5681dbdfaf25f3357cba3172906c076421c7b9 Cherry-pick Test_cursorhold_insert_with_timer_interrupt() change from patch 8.2.1836. Co-authored-by: Milly <milly.ca@gmail.com>
* test(old): remove workaround for TSAN CI (#24834)zeertzjq2023-08-22
| | | Now that TSAN CI no longer runs oldtests, match upstream better.
* vim-patch:9.0.0372: MS-Windows: "%T" time format does not appear to workzeertzjq2023-04-19
| | | | | | | | | Problem: MS-Windows: "%T" time format does not appear to work. Solution: Use "%H:%M:%S" instead. https://github.com/vim/vim/commit/5fbbec180b623cd6ebfc9528be6fa70b4cf664d4 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.0369: a failing flaky test doesn't mention the timezeertzjq2023-04-19
| | | | | | | | | Problem: A failing flaky test doesn't mention the time. Solution: Add the time for debugging. Improve error message. https://github.com/vim/vim/commit/06d32a0c177e4166ff0491668cd459464bc2ef45 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* test: move oldtests to test directory (#22536)dundargoc2023-03-07
The new oldtest directory is in test/old/testdir. The reason for this is that many tests have hardcoded the parent directory name to be 'testdir'.