summaryrefslogtreecommitdiffstats
path: root/src/testdir/runtest.vim
AgeCommit message (Collapse)Author
2023-10-21patch 9.0.2058: tests: avoid error when no swap files existv9.0.2058zeertzjq
Problem: tests: avoid error when no swap files exist Solution: use unlet! so that no error message is reported in case the variable does not exists When s:GetSwapFileList() does not find any swapfiles, it will return an empty list []. This means, that the variable 'name' will not be declared, cause the following unlet command to fail and causing a 1 sec delay on running the tests. So let's instead use the :unlet! command which simply skips reporting an error when the variable given as parameter does not exists. closes: #13396 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-10-18patch 9.0.2045: tests: checking for swap files takes timev9.0.2045zeertzjq
Problem: tests: checking for swap files takes time Solution: don't check for swap files when test has been skipped Check for swap files takes a considerable about of time, so don't do that for skipped tests to avoid wasting time. closes: #13371 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-08-08patch 9.0.1679: Cleanup Tests from leftover filesv9.0.1679Christian Brabandt
Problem: Tests may leave leftover files around Solution: Clean up tests and remove files There were a few failures in 'linux (huge, gcc, testgui, true, true)' e.g. here: https://github.com/vim/vim/actions/runs/5497376153/jobs/10018060156 ,---- | Error detected while processing command line..script /home/runner/work/vim/vim/src/testdir/runtest.vim[585]..function RunTheTest[54]..Test_lvimgrep_crash[16]..TestTimeout[12]..VimLeavePre Autocommands for "*"..function EarlyExit[7]..FinishTesting: | line 70: | E445: Other window contains changes | E937: Attempt to delete a buffer that is in use: Xtest_stable_xxd.txt | E937: Attempt to delete a buffer that is in use: Xtest_stable_xxd.txt | E937: Attempt to delete a buffer that is in use: Xtest_stable_xxd.txtmalloc(): unsorted double linked list corrupted `---- Which is puzzling, because the Xtest_stable_xxd file should have been long gone after test_crypt.vim is run (and definitely no longer be staying around in test_quickfix.vim). So try to clean up properly after a test script is run, just in case any X<file> is still around. During testing, a found a few leftover files, which I also fixed in the relevant test-file. Unfortunately, the test workflow 'linux (huge, gcc, testgui, true, true)' now seems to fail with 'E1230: Encryption: sodium_mlock()' in test_crypt.vim. Hopefully this is only temporary.
2023-07-08patch 9.0.1675: test may run into timeout when using valgrindv9.0.1675Bram Moolenaar
Problem: Test may run into timeout when using valgrind. Solution: Use a longer timeout when using valgrind.
2023-06-04patch 9.0.1604: errors from the codestyle test are a bit confusingv9.0.1604Bram Moolenaar
Problem: Errors from the codestyle test are a bit confusing. Solution: Use assert_report() with a clearer message. Avoid a warning for an existing swap file.
2023-01-28patch 9.0.1257: code style is not check in test scriptsv9.0.1257Bram Moolenaar
Problem: Code style is not check in test scripts. Solution: Add basic code style check for test files.
2022-12-08patch 9.0.1034: reporting swap file when windows are splitv9.0.1034Bram Moolenaar
Problem: Reporting swap file when windows are split. Solution: Close extra windows after running a test.
2022-12-06patch 9.0.1021: test trips over g:namev9.0.1021Bram Moolenaar
Problem: Test trips over g:name. Solution: Delete g:name after using it.
2022-12-06patch 9.0.1020: tests call GetSwapFileList() before it is definedv9.0.1020Bram Moolenaar
Problem: Tests call GetSwapFileList() before it is defined. Solution: Move the call to after defining the function. (Christopher Plewright)
2022-12-05patch 9.0.1012: tests may get stuck in buffer with swap filev9.0.1012Bram Moolenaar
Problem: Tests may get stuck in buffer with swap file. Solution: Bail out when bwipe! doesn't get another buffer.
2022-12-05patch 9.0.1010: stray warnings for existing swap filesv9.0.1010Bram Moolenaar
Problem: Stray warnings for existing swap files. Solution: Wipe out the buffer until it has no name and no swap file.
2022-12-05patch 9.0.1007: there is no way to get a list of swap file namesv9.0.1007Bram Moolenaar
Problem: There is no way to get a list of swap file names. Solution: Add the swapfilelist() function. Use it in the test script to clean up. Remove deleting individual swap files.
2022-09-23patch 9.0.0561: when a test gets stuck it just hangs foreverv9.0.0561Bram Moolenaar
Problem: When a test gets stuck it just hangs forever. Solution: Set a timeout of 30 seconds.
2022-09-23patch 9.0.0560: elapsed time since testing started is not visiblev9.0.0560Bram Moolenaar
Problem: Elapsed time since testing started is not visible. Solution: Show the elapsed time while running tests.
2022-09-22patch 9.0.0545: when a test is slow and CI times out there is no time infov9.0.0545Bram Moolenaar
Problem: When a test is slow and CI times out there is no time info. Solution: Add the elapsed time to the "Executing" message.
2022-09-20patch 9.0.0514: terminal test sometimes hangsv9.0.0514Bram Moolenaar
Problem: Terminal test sometimes hangs. Solution: Add a bit more information to the test output. (issue #11179)
2022-09-17patch 9.0.0491: no good reason to build without the float featurev9.0.0491Bram Moolenaar
Problem: No good reason to build without the float feature. Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
2022-09-09patch 9.0.0426: failed flaky tests reports only start timev9.0.0426Bram Moolenaar
Problem: Failed flaky tests reports only start time. Solution: Also report the end time.
2022-09-03patch 9.0.0372: MS-Windows: "%T" time format does not appear to workv9.0.0372Bram Moolenaar
Problem: MS-Windows: "%T" time format does not appear to work. Solution: Use "%H:%M:%S" instead.
2022-09-03patch 9.0.0369: a failing flaky test doesn't mention the timev9.0.0369Bram Moolenaar
Problem: A failing flaky test doesn't mention the time. Solution: Add the time for debugging. Improve error message.
2022-08-02patch 9.0.0134: no test for text property with column zerov9.0.0134Bram Moolenaar
Problem: No test for text property with column zero. Solution: Add a test. Add message to assert for no open popups.
2022-07-04patch 9.0.0036: 'fillchars' cannot have window-local valuesv9.0.0036Bram Moolenaar
Problem: 'fillchars' cannot have window-local values. Solution: Make 'fillchars' global-local. (closes #5206)
2022-06-30patch 9.0.0013: reproducing memory access errors can be difficultv9.0.0013Bram Moolenaar
Problem: Reproducing memory access errors can be difficult. Solution: When testing, copy each line to allocated memory, so that valgrind can detect accessing memory before and/or after it. Fix uncovered problems.
2022-06-15patch 8.2.5102: interrupt not caught in testv8.2.5102Bram Moolenaar
Problem: Interrupt not caught in test. Solution: Consider an exception thrown in the current try/catch when got_int is set. Also catch early exit when not using try/catch.
2022-06-14patch 8.2.5094: MS-Windows GUI: empty command may cause a dialogv8.2.5094Bram Moolenaar
Problem: MS-Windows GUI: empty command may cause a dialog. Solution: Delete the dialog file. Improve the message.
2022-06-13patch 8.2.5084: when the GUI shows a dialog tests get stuckv8.2.5084Bram Moolenaar
Problem: When the GUI shows a dialog tests get stuck. Solution: Add the --gui-dialog-file argument.
2022-03-20patch 8.2.4598: profile completion test sometimes failsv8.2.4598Bram Moolenaar
Problem: Profile completion test sometimes fails. Solution: Delete the .res file before running tests.
2021-12-30patch 8.2.3946: when an internal error makes Vim exit the error is not seenv8.2.3946Bram Moolenaar
Problem: When an internal error makes Vim exit the error is not seen. Solution: Add the error to the test output.
2021-12-11patch 8.2.3780: ":cd" works differently on MS-Windowsv8.2.3780Bakudankun
Problem: ":cd" works differently on MS-Windows. Solution: Add the 'cdhome' option. (closes #9324)
2021-11-21patch 8.2.3637: typos in test filesv8.2.3637Dominique Pelle
Problem: Typos in test files. Solution: Correct the typos. (Dominique Pellé, closes #9175)
2021-11-03patch 8.2.3579: CI sometimes fails for MinGWv8.2.3579Christian Brabandt
Problem: CI sometimes fails for MinGW. Solution: Use backslashes in HandleSwapExists(). (Christian Brabandt, closes #9078)
2021-10-16patch 8.2.3518: Test_xrestore sometimes failsv8.2.3518Bram Moolenaar
Problem: Test_xrestore sometimes fails. Solution: Mark the test as flayky. Move marking test as flaky to the test instead of listing them in runtest.
2021-08-07patch 8.2.3311: Vim9: check for DO_NOT_FREE_CNT is very slowv8.2.3311Bram Moolenaar
Problem: Vim9: check for DO_NOT_FREE_CNT is very slow. Solution: Move to a separate function so it can be skipped by setting $TEST_SKIP_PAT.
2021-03-22patch 8.2.2638: cannot write a message to the terminal from the GUIv8.2.2638Bram Moolenaar
Problem: Cannot write a message to the terminal from the GUI. Solution: Add :echoconsole and use it in the test runner. (issue #7975)
2021-03-10patch 8.2.2589: recover test hangs in the GUIv8.2.2589Bram Moolenaar
Problem: Recover test hangs in the GUI. Solution: Add g:skipped_reason to skip a _nocatch_ test.
2020-11-21patch 8.2.2030: some tests fail on Macv8.2.2030Bram Moolenaar
Problem: Some tests fail on Mac. Solution: Avoid Mac test failures. Add additional test for wildmenu. (Yegappan Lakshmanan, closes #7341)
2020-10-03patch 8.2.1788: Vim9: still allows :let for declarationsv8.2.1788Bram Moolenaar
Problem: Vim9: still allows :let for declarations. Solution: Make the default for v:disallow_let one. It can still be set to zero to allow for using :let.
2020-10-01patch 8.2.1783: try-catch test failsv8.2.1783Bram Moolenaar
Problem: Try-catch test fails. Solution: Don't call win_enter(), only call enterering_window().
2020-09-27patch 8.2.1766: Vim9: Some tests are still using :letv8.2.1766Bram Moolenaar
Problem: Vim9: Some tests are still using :let. Solution: Change the last few declarations to use :var.
2020-08-31patch 8.2.1555: not all tests are executed on Github Actionsv8.2.1555Bram Moolenaar
Problem: Not all tests are executed on Github Actions. Solution: Copy "src" to "src2" earlier. Recognize "src2" in a couple more places. Add two tests to the list of flaky tests. (Ken Takata, closes #6798)
2020-08-13patch 8.2.1439: tiny and small builds have no test coveragev8.2.1439Bram Moolenaar
Problem: Tiny and small builds have no test coverage. Solution: Restore tests that do not depend on the +eval feature. (Ken Takata, closes #6696)
2020-08-07patch 8.2.1384: no ATTENTION prompt for :vimgrep first match filev8.2.1384Bram Moolenaar
Problem: No ATTENTION prompt for :vimgrep first match file. Solution: When there is an existing swap file do not keep the dummy buffer. (closes #6649)
2020-07-29patch 8.2.1315: MS-Windows: test log contains escape sequencesv8.2.1315Bram Moolenaar
Problem: MS-Windows: test log contains escape sequences. Solution: Do not use t_md and t_me but ANSI escape sequences. (Ken Takata, closes #6559)
2020-07-27patch 8.2.1305: some tests are still old stylev8.2.1305Bram Moolenaar
Problem: Some tests are still old style. Solution: Convert tests 52 and 70 to new style. (Yegappan Lakshmanan, closes #6544) Fix error in FinishTesting().
2020-07-27patch 8.2.1304: debug backtrace isn't tested muchv8.2.1304Bram Moolenaar
Problem: Debug backtrace isn't tested much. Solution: Add more specific tests. (Ben Jackson, closes #6540)
2020-07-22patch 8.2.1267: MS-Windows: tests may fail due to $PROMPT valuev8.2.1267Bram Moolenaar
Problem: MS-Windows: tests may fail due to $PROMPT value. Solution: Set $PROMPT for testing. (Taro Muraoka, closes #6510)
2020-07-18patch 8.2.1240: GUI tests sometimes fail because of translationsv8.2.1240Bram Moolenaar
Problem: GUI tests sometimes fail because of translations. Solution: Reload the menus without translation. (Taro Muraoka, closes #6486)
2020-07-11patch 8.2.1177: terminal2 test sometimes hangs in the GUIv8.2.1177Bram Moolenaar
Problem: Terminal2 test sometimes hangs in the GUI. Solution: Move some tests to other files to further locate the problem. Set the GUI to a fixed screen size.
2020-06-21patch 8.2.1033: not easy to read the test time in the test outputv8.2.1033Bram Moolenaar
Problem: Not easy to read the test time in the test output. Solution: Align the times. Make slow tests bold.
2020-05-13patch 8.2.0748: cannot get a list of all popupsv8.2.0748Bram Moolenaar
Problem: Cannot get a list of all popups. Solution: Add popup_list(). Use it in the test runner.