| Commit message (Collapse) | Author | Age |
| |
|
|
|
| |
Problem: Timers test is flaky.
Solution: Accept a larger count. Add test to list of flaky tests.
https://github.com/vim/vim/commit/7e6feb9eeb095ec424430ff4332c77f70372ce62
|
| |
|
|
|
|
|
| |
Also, don't compute load factor unless load_adjust() was called, it
slows down the test suite.
ref #9292
|
| |
|
|
|
|
|
|
|
|
| |
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.
https://github.com/vim/vim/commit/c577d813b7978345dec4310b2d8f5d5624a681f6
closes #9826
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
From test_timers.vim:
Found errors in Test_paused():
First run:
function RunTheTest[35]..Test_paused line 20: Expected range 0 - 100, but got 123
Second run:
function RunTheTest[35]..Test_paused line 20: Expected range 0 - 100, but got 106
previously: #9220
- Timer tests are less reliable on Travis CI macOS 10.12/10.13.
ref #6829
ref e39dade80b02
ref de13113dc16e
ref https://github.com/neovim/neovim/pull/9095#issuecomment-429603452
> We don't guarantee that a X ms timer is triggered during Y ms sleep
> for any X<Y, though I would expect the load to be really bad for this
> to happen with X=10ms, Y=40ms.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Test is unreliable on macOS 10.13. The lower-bound isn't central to the
purpose of the test, so just relax it.
ref https://github.com/neovim/neovim/pull/9095#issuecomment-429603452
> We don't guarantee that a X ms timer is triggered during Y ms sleep
> for any X<Y, though I would expect the load to be really bad for this
> to happen with X=10ms, Y=40ms.
related: #6829
|
| |
|
|
|
|
|
| |
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.
https://github.com/vim/vim/commit/e723c42836d971180d1bf9f98916966c5543fff1
|
| |
|
|
|
|
|
| |
Problem: Can't use input() in a timer callback. (Cosmin Popescu)
Solution: Reset vgetc_busy and set timer_busy. (Ozaki Kiichi, closes vim/vim#1790,
closes vim/vim#1129)
https://github.com/vim/vim/commit/1e8e14552e0cc8881411eb8fbe39a654dae42554
|
| |
|
|
|
| |
Timer tests are less reliable on Travis CI macOS 10.12 (most egregious).
Also somewhat on 10.13.
|
| |
|
|
|
|
| |
Problem: No test for what 8.0.1020 fixes.
Solution: Add test_feedinput(). Add a test. (Ozaki Kiichi, closes vim/vim#2046)
https://github.com/vim/vim/commit/5e80de3f3e572805fe734b66bc42c13303ad9bdb
|
| |
|
|
|
| |
If the timer isn't stopped, it still emits events which consume some CPU.
Fix #8188
|
| | |
|
| |
|
|
|
|
|
| |
Problem: Memory leak in timer_start().
Solution: Check the right field to be NULL.
https://github.com/vim/vim/commit/26fe0d56912e42c2b16a61b2480e19ba569aee98
|
| |
|
|
|
|
|
|
|
| |
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)
https://github.com/vim/vim/commit/75537a93e985ef32e6c267b06ce93629855dd983
|
| |
|
|
|
|
|
|
|
| |
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.
https://github.com/vim/vim/commit/417ccd7138d4d230d328de8b0d3892dd82ff1bee
|
| |
|
|
|
|
|
| |
Problem: Timer test fails sometimes.
Solution: Reduce minimum time by 1 msec.
https://github.com/vim/vim/commit/0426bae2abede764d0dd366a28663d1c6e6ab0fe
|
| |
|
|
|
|
|
| |
Problem: Timer test sometimes fails.
Solution: Increase the maximum time for callback timer test.
https://github.com/vim/vim/commit/17f1347b867cbcc0ce380bf9a2466b4c31896f04
|
| |
|
|
|
|
|
| |
Problem: Timer test sometimes fails.
Solution: Increase the maximum time for repeating timer.
https://github.com/vim/vim/commit/973365dcc40a41e6b72ece56f15cebfee69b1329
|
| |
|
|
|
|
|
| |
Problem: Tests using the sleep time can be flaky.
Solution: Use reltime() if available. (Partly by Shane Harper)
https://github.com/vim/vim/commit/f267f8bdf777073e392ada5b31d837c7b6090eb4
|
| |
|
|
|
|
|
|
| |
Problem: There is no easy way to stop all timers. There is no way to
temporary pause a timer.
Solution: Add timer_stopall() and timer_pause().
https://github.com/vim/vim/commit/b73598e2f022a22fec512ea681c70d2775e8fd87
|
| |
|
|
|
|
|
| |
Problem: Test files have inconsistant modelines.
Solution: Don't set 'tabstop' to 2, use 'sts' and 'sw'.
https://github.com/vim/vim/commit/9e4d8215d386100ab660d7d11e6620fd148b605e
|
| | |
|
| |
|
|
|
|
|
| |
Problem: Using a partial for timer_start() may cause a crash.
Solution: Set the copyID in timer objects. (Ozaki Kiichi)
https://github.com/vim/vim/commit/e3188e261569ae512fb1ae2653b57fdd9e259ca3
|
| |
|
|
|
|
|
|
|
|
| |
Problem: Leaking memory when there is a cycle involving a job and a
partial.
Solution: Add a copyID to job and channel. Set references in items referred
by them. Go through all jobs and channels to find unreferenced
items. Also, decrement reference counts when garbage collecting.
https://github.com/vim/vim/commit/107e1eef1df3b786ad3ad49fbdb9e058649303b5
|
|
|
For the moment, timers are triggered during sleep,
but not in wait-for-input modes, like press-RETURN or f_getchar()
|