summaryrefslogtreecommitdiff
path: root/src/testdir/test_timers.vim
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.1593: tests do not check the error number properlyv8.2.1593Bram Moolenaar2020-09-041-2/+2
| | | | | Problem: Tests do not check the error number properly.0 Solution: Add a colon after the error number. (closes #6869)
* patch 8.2.0908: crash when changing the function table while listing itv8.2.0908Bram Moolenaar2020-06-051-0/+25
| | | | | Problem: Crash when changing the function table while listing it. Solution: Bail out when the function table changes. (closes #6209)
* patch 8.2.0866: not enough tests for buffer writingv8.2.0866Bram Moolenaar2020-05-311-3/+1
| | | | | | Problem: Not enough tests for buffer writing. Solution: Add more tests. Use CheckRunVimInTerminal in more places. (Yegappan Lakshmanan, closes #6167)
* patch 8.2.0533: tests using term_wait() can still be flakyv8.2.0533Bram Moolenaar2020-04-081-2/+2
| | | | | | | Problem: Tests using term_wait() can still be flaky. Solution: Increase the wait time when rerunning a test. (James McCoy, closes #5899) Halve the initial times to make tests run faster when there is no rerun.
* patch 8.2.0361: internal error when using "0" for a callbackv8.2.0361Bram Moolenaar2020-03-071-0/+4
| | | | | Problem: Internal error when using "0" for a callback. Solution: Give a normal error. (closes #5743)
* patch 8.2.0203: :helptags and some other functionality not testedv8.2.0203Bram Moolenaar2020-02-031-0/+17
| | | | | Problem: :helptags and some other functionality not tested. Solution: Add more tests. (Yegappan Lakshmanan, closes #5567)
* patch 8.2.0183: tests fail when the float feature is disabledv8.2.0183Bram Moolenaar2020-01-301-0/+1
| | | | | Problem: Tests fail when the float feature is disabled. Solution: Skip tests that don't work without float support.
* patch 8.2.0048: another timers test is flaky on Travis for Macv8.2.0048Bram Moolenaar2019-12-271-1/+6
| | | | | Problem: Another timers test is flaky on Travis for Mac. Solution: Increase maximum expected time.
* patch 8.2.0043: timers test is still flaky on Travis for Macv8.2.0043Bram Moolenaar2019-12-251-2/+2
| | | | | Problem: Timers test is still flaky on Travis for Mac. Solution: Increase maximum expected time.
* patch 8.2.0021: timer test fails too often on Travis with MacOSv8.2.0021Bram Moolenaar2019-12-181-5/+21
| | | | | Problem: Timer test fails too often on Travis with MacOS. Solution: Be less strict with the time.
* patch 8.1.2013: more functions can be used as methodsv8.1.2013Bram Moolenaar2019-09-081-4/+4
| | | | | Problem: More functions can be used as methods. Solution: Make various functions usable as a method.
* patch 8.1.2011: more functions can be used as methodsv8.1.2011Bram Moolenaar2019-09-081-1/+1
| | | | | | Problem: More functions can be used as methods. Solution: Make various functions usable as a method. Make the window command test faster.
* patch 8.1.1867: still a timer test that is flaky on Macv8.1.1867Bram Moolenaar2019-08-171-2/+10
| | | | | Problem: Still a timer test that is flaky on Mac. Solution: Loop with a sleep instead of one fixed sleep.
* patch 8.1.1864: still a timer test that is flaky on Macv8.1.1864Bram Moolenaar2019-08-161-2/+2
| | | | | Problem: Still a timer test that is flaky on Mac. Solution: Adjust the sleep times.
* patch 8.1.1859: timer test sometimes fails on Macv8.1.1859Bram Moolenaar2019-08-161-6/+13
| | | | | Problem: Timer test sometimes fails on Mac. Solution: Show more info when it fails.
* patch 8.1.1855: another failing timer testv8.1.1855Bram Moolenaar2019-08-161-18/+19
| | | | | | Problem: Another failing timer test. Solution: Assert that timers are finished by the end of the test. Rename test functions to make them easier to find.
* patch 8.1.1852: timers test is flakyv8.1.1852Bram Moolenaar2019-08-151-1/+1
| | | | | Problem: Timers test is flaky. Solution: Accept a larger count. Add test to list of flaky tests.
* patch 8.1.1826: tests use hand coded feature and option checksv8.1.1826Bram Moolenaar2019-08-071-5/+4
| | | | | Problem: Tests use hand coded feature and option checks. Solution: Use the commands from check.vim in more tests.
* patch 8.1.1624: when testing in the GUI may try to run gvim in a terminalv8.1.1624Bram Moolenaar2019-07-041-2/+2
| | | | | | Problem: When testing in the GUI may try to run gvim in a terminal. Solution: Add the -v argument. (Yee Cheng Chin, closes #4605) Don't skip tests that work now.
* patch 8.1.1619: tests are not run with GUI on Travisv8.1.1619Bram Moolenaar2019-07-031-1/+1
| | | | | Problem: Tests are not run with GUI on Travis. Solution: Add a testgui job. (Ozaki Kiichi, closes #4609)
* patch 8.1.1591: on error garbage collection may free memory in usev8.1.1591Bram Moolenaar2019-06-251-0/+35
| | | | | | Problem: On error garbage collection may free memory in use. Solution: Reset may_garbage_collect when evaluating expression mapping. Add tests. (Ozaki Kiichi, closes #4579)
* patch 8.1.1581: shared functions for testing are disorganisedv8.1.1581Bram Moolenaar2019-06-231-1/+1
| | | | | Problem: Shared functions for testing are disorganised. Solution: Group finctions in script files. (Ozaki Kiichi, closes #4573)
* patch 8.1.1579: dict and list could be GC'ed while displaying errorv8.1.1579Bram Moolenaar2019-06-221-0/+24
| | | | | | | | Problem: Dict and list could be GC'ed while displaying error in a timer. (Yasuhiro Matsumoto) Solution: Block garbage collection when executing a timer. Add test_garbagecollect_soon(). Add "no_wait_return" to test_override(). (closes #4571)
* patch 8.1.1544: some balloon tests don't run when they canv8.1.1544Bram Moolenaar2019-06-151-3/+2
| | | | | | | Problem: Some balloon tests don't run when they can. Solution: Split GUI balloon tests off into a separate file. (Ozaki Kiichi, closes #4538) Change the feature check into a command for consistency.
* patch 8.1.1524: tests are silently skippedv8.1.1524Bram Moolenaar2019-06-131-1/+1
| | | | | Problem: Tests are silently skipped. Solution: Throw an exception for skipped tests in more places.
* patch 8.1.1483: skipped tests are not properly listedv8.1.1483Bram Moolenaar2019-06-061-1/+1
| | | | | Problem: Skipped tests are not properly listed. Solution: Throw a "Skipped" exception instead of using ":finish" or ":return".
* patch 8.1.0851: feedkeys() with "L" does not work properlyv8.1.0851Bram Moolenaar2019-01-301-3/+2
| | | | | | Problem: feedkeys() with "L" does not work properly. Solution: Do not set typebuf_was_filled when using "L". (Ozaki Kiichi, closes #3885)
* patch 8.1.0844: when timer fails test will hang foreverv8.1.0844Bram Moolenaar2019-01-291-1/+3
| | | | | Problem: When timer fails test will hang forever. Solution: Use reltime() to limit waiting time. (Ozaki Kiichi, closes #3878)
* patch 8.1.0842: getchar_zero test fails on MS-Windowsv8.1.0842Bram Moolenaar2019-01-281-2/+9
| | | | | Problem: getchar_zero test fails on MS-Windows. Solution: Disable the test for now.
* patch 8.1.0840: getchar(0) never returns a character in the terminalv8.1.0840Bram Moolenaar2019-01-281-0/+10
| | | | | Problem: getchar(0) never returns a character in the terminal. Solution: Call wait_func() at least once.
* patch 8.0.1817: a timer may change v:count unexpectedlyv8.0.1817Bram Moolenaar2018-05-121-0/+32
| | | | | | Problem: A timer may change v:count unexpectedly. Solution: Save and restore v:count and similar variables when a timer callback is invoked. (closes #2897)
* patch 8.0.1776: in tests, when WaitFor() fails it doesn't say whyv8.0.1776Bram Moolenaar2018-04-301-3/+3
| | | | | Problem: In tests, when WaitFor() fails it doesn't say why. Solution: Turn a few more WaitFor() into WaitForAssert().
* patch 8.0.1456: timer test on travis Mac is still flakyv8.0.1456Bram Moolenaar2018-02-031-1/+1
| | | | | Problem: Timer test on travis Mac is still flaky. Solution: Increase time range a bit more.
* patch 8.0.1424: the timer_pause test is flaky on Travisv8.0.1424Bram Moolenaar2017-12-231-1/+6
| | | | | Problem: The timer_pause test is flaky on Travis. Solution: Accept a longer sleep time on Mac.
* patch 8.0.1162: shared script for tests cannot be included twicev8.0.1162Bram Moolenaar2017-09-301-3/+1
| | | | | Problem: Shared script for tests cannot be included twice. Solution: Include it where needed, it will "finish" if loaded again.
* patch 8.0.1109: timer causes error on exit from Ex modev8.0.1109Bram Moolenaar2017-09-141-0/+11
| | | | | | Problem: Timer causes error on exit from Ex mode. (xtal8) Solution: save and restore the ex_pressedreturn flag. (Christian Brabandt, closes #2079)
* patch 8.0.1067: try/catch in timer does not prevent it from being stoppedv8.0.1067Bram Moolenaar2017-09-061-0/+18
| | | | | | Problem: Using try/catch in timer does not prevent it from being stopped. Solution: Reset the exception context and use did_emsg instead of called_emsg.
* patch 8.0.1055: bufline test hangs on MS-Windowsv8.0.1055Bram Moolenaar2017-09-041-0/+4
| | | | | | Problem: Bufline test hangs on MS-Windows. Solution: Avoid message for writing file. Source shared.vim when running test individually.
* patch 8.0.1053: setline() does not work on startupv8.0.1053Bram Moolenaar2017-09-041-2/+0
| | | | | | Problem: setline() does not work on startup. (Manuel Ortega) Solution: Do not check for ml_mfp to be set for the current buffer. (Christian Brabandt)
* patch 8.0.1048: no test for what 8.0.1020 fixesv8.0.1048Bram Moolenaar2017-09-031-0/+19
| | | | | Problem: No test for what 8.0.1020 fixes. Solution: Add test_feedinput(). Add a test. (Ozaki Kiichi, closes #2046)
* patch 8.0.0702: an error in a timer can make Vim unusablev8.0.0702Bram Moolenaar2017-07-081-0/+18
| | | | | | | Problem: An error in a timer can make Vim unusable. Solution: Don't set the error flag or exception from a timer. Stop a timer if it causes an error 3 out of 3 times. Discard an exception caused inside a timer.
* patch 8.0.0670: can't use input() in a timer callbackv8.0.0670Bram Moolenaar2017-06-241-0/+16
| | | | | | Problem: Can't use input() in a timer callback. (Cosmin Popescu) Solution: Reset vgetc_busy and set timer_busy. (Ozaki Kiichi, closes #1790, closes #1129)
* patch 7.4.2359v7.4.2359Bram Moolenaar2016-09-101-4/+4
| | | | | Problem: Memory leak in timer_start(). Solution: Check the right field to be NULL.
* patch 7.4.2332v7.4.2332Bram Moolenaar2016-09-051-0/+30
| | | | | | | Problem: Crash when stop_timer() is called in a callback of a callback. Vim hangs when the timer callback uses too much time. Solution: Set tr_id to -1 when a timer is to be deleted. Don't keep calling callbacks forever. (Ozaki Kiichi)
* patch 7.4.2304v7.4.2304Bram Moolenaar2016-09-011-0/+15
| | | | | | | Problem: In a timer callback the timer itself can't be found or stopped. (Thinca) Solution: Do not remove the timer from the list, remember whether it was freed.
* patch 7.4.2281v7.4.2281Bram Moolenaar2016-08-281-3/+3
| | | | | Problem: Timer test fails sometimes. Solution: Reduce minimum time by 1 msec.
* patch 7.4.2242v7.4.2242Bram Moolenaar2016-08-221-1/+1
| | | | | Problem: Timer test sometimes fails. Solution: Increase the maximum time for callback timer test.
* patch 7.4.2241v7.4.2241Bram Moolenaar2016-08-221-1/+1
| | | | | Problem: Timer test sometimes fails. Solution: Increase the maximum time for repeating timer.
* patch 7.4.2240v7.4.2240Bram Moolenaar2016-08-221-4/+20
| | | | | Problem: Tests using the sleep time can be flaky. Solution: Use reltime() if available. (Partly by Shane Harper)
* patch 7.4.2228v7.4.2228Bram Moolenaar2016-08-181-1/+1
| | | | | Problem: Test files have inconsistant modelines. Solution: Don't set 'tabstop' to 2, use 'sts' and 'sw'.