aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_swap.vim
Commit message (Collapse)AuthorAge
* 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'.
* test(old): make getting an unused PID work (#22529)zeertzjq2023-03-05
|
* vim-patch:8.2.4668: buffer allocation failures insufficiently testedzeertzjq2023-02-28
| | | | | | | | | | Problem: Buffer allocation failures insufficiently tested. Solution: Add tests for memory allocation failures. (Yegappan Lakshmanan, closes vim/vim#10064) https://github.com/vim/vim/commit/0dac1ab5791819ee9a496273eea38f69a217ac45 Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
* vim-patch:8.2.3103: swap test may fail on some systemszeertzjq2022-11-17
| | | | | | | | | Problem: Swap test may fail on some systems when jobs take longer to exit. Solution: Use different file names. https://github.com/vim/vim/commit/f33cae605064c8bdb908a8069d936f752572cd76 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.2952: recover test fails on big endian systemszeertzjq2022-11-17
| | | | | | | | | | Problem: Recover test fails on big endian systems. Solution: Disable the failing test on big endian systems. (Yegappan Lakshmanan, closes vim/vim#8335) https://github.com/vim/vim/commit/99285550a9957e2c8669f183557944c6513c4875 Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
* vim-patch:8.2.2945: some buffer related code is not testedzeertzjq2022-11-17
| | | | | | | | | Problem: Some buffer related code is not tested. Solution: Add a few more tests. (Yegappan Lakshmanan, closes vim/vim#8320) https://github.com/vim/vim/commit/59b262362f26b3aaea1eeb0078adc33eed59863e Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
* vim-patch:8.2.3042: swap file test failszeertzjq2022-11-17
| | | | | | | | | | Problem: Swap file test fails. Solution: Check for a very high process ID instead of one, which should be running. https://github.com/vim/vim/commit/6738fd2000f0bea4d40f4a8651e0e1f4b0503bb3 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.2044: MS-Windows: swap file test sometimes failszeertzjq2022-11-17
| | | | | | | | | Problem: MS-Windows: swap file test sometimes fails. Solution: Use a more reliable way to change the process ID. When "timeout" fails use "ping" to wait up to ten minutes. (Ken Takata, closes vim/vim#7365) https://github.com/vim/vim/commit/5ee0981fb5259f94900ab25207caddf1fa61010d
* vim-patch:8.2.2019: swap file test fails on MS-Windowszeertzjq2022-11-17
| | | | | | | Problem: Swap file test fails on MS-Windows. Solution: Add four to the process ID. (Ken Takata, closes vim/vim#7333) https://github.com/vim/vim/commit/80d868ec25094615f2531a1e01ed1e729366c3bc
* vim-patch:8.2.2016: swap file test is a little flakyzeertzjq2022-11-17
| | | | | | | | | Problem: Swap file test is a little flaky. Solution: Don't set a byte to a fixed value, increment it. https://github.com/vim/vim/commit/c6ca9f3a29bfd6f5269749036f79f63ce6289692 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.1970: it is easy to make mistakes when cleaning up swap fileszeertzjq2022-11-17
| | | | | | | | | | Problem: It is easy to make mistakes when cleaning up swap files after the system crashed. Solution: Warn for the process still running after recovery. Do not automatically delete a swap file created on another system. (David Fries, closes vim/vim#7273) https://github.com/vim/vim/commit/f883508e36c209d60388b944e04e22a3fcf603cf
* vim-patch:8.2.3102: test for crash fix does not fail without the fix (#20018)zeertzjq2022-08-31
| | | | | | | Problem: Test for crash fix does not fail without the fix. Solution: Adjust the test sequence. (closes vim/vim#8506) https://github.com/vim/vim/commit/3777d6e32b22f0a70b774760c24160079e303bad Cherry-pick CheckUnix from patch 8.2.1432.
* vim-patch:8.2.0301: insufficient testing for exception handling (#20016)zeertzjq2022-08-31
| | | | | | | | Problem: Insufficient testing for exception handling and the "attention" prompt. Solution: Add test cases. (Yegappan Lakshmanan, closes vim/vim#5681) https://github.com/vim/vim/commit/b654103ad1e379348616f354272db86804ab4bdb Fix memory leak from last char_u refactor.
* vim-patch:8.2.0275: some Ex code not covered by testszeertzjq2022-07-12
| | | | | | Problem: Some Ex code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes vim/vim#5659) https://github.com/vim/vim/commit/406cd90f1963ca60813db91c413eef4b1b78ee44
* vim-patch:8.1.2133: some tests fail when run as rootzeertzjq2022-02-04
| | | | | | | | Problem: Some tests fail when run as root. Solution: Add CheckNotRoot and use it. (James McCoy, closes vim/vim#5020) https://github.com/vim/vim/commit/07282f01da06c158bab4787adc89ec15d7eeb202 Skip test_terminal.vim and test_viminfo.vim: N/A
* feat(eval/method): partially port v8.1.2004Sean Dewar2021-11-26
| | | | | | | | | | | Problem: More functions can be used as methods. Solution: Make various functions usable as a method. https://github.com/vim/vim/commit/f6ed61e1489e40eada55a4f1782e1ed82bcad7d9 +sound is needed for sound_* functions. Make swapinfo and swapname take exactly one argument. Previously, they could erroneously take one or more.
* test(oldtest): unskip existing tests that use BlobsSean Dewar2021-09-16
|
* vim-patch:8.2.3136: no test for E187 and "No swap file"Jan Edmund Lazo2021-07-31
| | | | | | Problem: No test for E187 and "No swap file". Solution: Add a test. (Dominique Pellé, closes vim/vim#8540) https://github.com/vim/vim/commit/fe3418abe0dac65e42e85b5a91c5d0c975bc65bb
* vim-patch:8.2.3097: crash when using "quit" at recovery promptJan Edmund Lazo2021-07-04
| | | | | | | | Problem: Crash when using "quit" at recovery prompt and autocommands are triggered. Solution: Block autocommands when creating an empty buffer to use as the current buffer. (closes vim/vim#8506) https://github.com/vim/vim/commit/1d97efce0ce31ddf0dd4c1ae2228ef4caee6880c
* vim-patch:8.2.1219: symlink not followed if dirname ends in //Jan Edmund Lazo2020-10-17
| | | | | | Problem: Symlink not followed if dirname ends in //. Solution: Resolve symlink earlier. (Tomáš Janoušek, closes vim/vim#6454) https://github.com/vim/vim/commit/5966ea105ea86e52a734e04267956e11efffc92d
* vim-patch:8.2.0444: swap file test fails on some systemsJan Edmund Lazo2020-10-16
| | | | | | | | Problem: Swap file test fails on some systems. Solution: Preserve the swap file. Send NL terminated keys. https://github.com/vim/vim/commit/d36ef573b2fad620824495f5423cb649cde55e03 Cherry-pick Test_swap_prompt_splitwin() from patch 8.2.0301.
* vim-patch:8.1.1371: cannot recover from a swap file #11081Jurica Bradarić2019-10-05
| | | | | | | Problem: Cannot recover from a swap file. Solution: Do not expand environment variables in the swap file name. Do not check the extension when we already know a file is a swap file. (Ken Takata, closes 4415, closes vim/vim#4369) https://github.com/vim/vim/commit/99499b1c05f85f83876b828eea3f6e14f0f407b4
* vim-patch:8.1.0830: test leaves directory behind #10152Daniel Hahler2019-06-08
| | | | | Problem: Test leaves directory behind on MS-Windows. Solution: Close buffer before deleting directory. https://github.com/vim/vim/commit/e3d065454408a103c39308651dd7793f0bf55ba6
* vim-patch:8.0.1267: Test_swap_group may leave file behindJan Edmund Lazo2019-04-29
| | | | | | Problem: Test_swap_group may leave file behind. Solution: Add a try/finally. https://github.com/vim/vim/commit/5842a748be8039fd6d267f5557fe391c6c95399d
* vim-patch:8.0.1265: swap test not skipped when there is one groupJan Edmund Lazo2019-04-29
| | | | | | Problem: Swap test not skipped when there is one group. Solution: Convert list to string for the message. https://github.com/vim/vim/commit/ad7dac85c3c90893e78e5463ca44b874082b482f
* vim-patch:8.0.1263: others can read the swap file if a user is carelessJan Edmund Lazo2019-04-29
| | | | | | | | Problem: Others can read the swap file if a user is careless with his primary group. Solution: If the group permission allows for reading but the world permissions doesn't, make sure the group is right. https://github.com/vim/vim/commit/5a73e0ca54c77e067c3b12ea6f35e3e8681e8cf8
* vim-patch:8.1.1234: swap file test fails on MS-WindowsJustin M. Keyes2019-04-29
| | | | | | Problem: Swap file test fails on MS-Windows. Solution: Only compare the tail of the file names. https://github.com/vim/vim/commit/701df4eb64ae9945c63f83621b54aa69e1336a79
* test/old: skip Test_swapfile_delete() until "blob" is mergedJustin M. Keyes2019-04-29
|
* vim-patch:8.1.1231: asking about existing swap file unnecessarilyJustin M. Keyes2019-04-29
| | | | | | | | | | | | Problem: Asking about existing swap file unnecessarily. Solution: When it is safe, delete the swap file. Remove HAS_SWAP_EXISTS_ACTION, it is always defined. (closes vim/vim#1237) https://github.com/vim/vim/commit/67cf86bfff5fd5224d557d81cb146f46e33b831c N/A: vim-patch:8.1.1232 vim-patch:8.1.1233 vim-patch:8.1.1236
* vim-patch:8.1.0401: can't get swap name of another bufferJustin M. Keyes2019-04-29
| | | | | | Problem: Can't get swap name of another buffer. Solution: Add swapname(). (Ozaki Kiichi, closes vim/vim#3441) https://github.com/vim/vim/commit/110bd60985c31e8978e9b071e2179f4233ef8557
* vim-patch:8.1.0316: swapinfo() test fails on TravisJustin M. Keyes2019-04-29
| | | | | | | Problem: swapinfo() test fails on Travis. Solution: Handle a long host name. (Ozaki Kiichi, closes vim/vim#3361) Also make the version check flexible. (James McCoy) https://github.com/vim/vim/commit/4c5765bc47b2708075e8d8471e8d342079479777
* vim-patch:8.1.0314: add swapinfo() "dirty" itemJustin M. Keyes2019-04-29
| | | | | | Problem: Build failure without the +eval feature. (Brenton Horne) Solution: Add #ifdef. Also add the "dirty" item. https://github.com/vim/vim/commit/47ad5656e1e4285a74e7e8e5d0f1f71cd554e25c
* vim-patch:8.1.0313: information about a swap file is unavailableJustin M. Keyes2019-04-29
| | | | | | Problem: Information about a swap file is unavailable. Solution: Add swapinfo(). (Enzo Ferber) https://github.com/vim/vim/commit/00f123a56585363cd13f062fd3bb123efcfaa664
* vim-patch:8.0.1819: swap file warning for file with non-existing directoryJan Edmund Lazo2018-08-09
| | | | | | | Problem: Swap file warning for a file in a non-existing directory, if there is another with the same file name. (Juergen Weigert) Solution: When expanding the file name fails compare the file names. https://github.com/vim/vim/commit/8c3169c58eef3e04f643fe9e045a97b81429e0cb
* vim-patch:8.0.1253: still too many old style testsJan Edmund Lazo2018-07-06
Problem: Still too many old style tests. Solution: Convert a few more tests to new style. (Yegappan Lakshmanan, closes vim/vim#2272) https://github.com/vim/vim/commit/430dc5d360166ca5bb6a73f2c87ae53e09282ecb Skip Test_tag_file_encoding. 083_tag_search_with_file_encoding_spec.lua handles the same test case.