| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Problem: Tests do not check the error number properly.0
Solution: Add a colon after the error number. (closes #6869)
|
|
|
|
|
| |
Problem: Crash when changing the function table while listing it.
Solution: Bail out when the function table changes. (closes #6209)
|
|
|
|
|
|
| |
Problem: Not enough tests for buffer writing.
Solution: Add more tests. Use CheckRunVimInTerminal in more places.
(Yegappan Lakshmanan, closes #6167)
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Problem: Internal error when using "0" for a callback.
Solution: Give a normal error. (closes #5743)
|
|
|
|
|
| |
Problem: :helptags and some other functionality not tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes #5567)
|
|
|
|
|
| |
Problem: Tests fail when the float feature is disabled.
Solution: Skip tests that don't work without float support.
|
|
|
|
|
| |
Problem: Another timers test is flaky on Travis for Mac.
Solution: Increase maximum expected time.
|
|
|
|
|
| |
Problem: Timers test is still flaky on Travis for Mac.
Solution: Increase maximum expected time.
|
|
|
|
|
| |
Problem: Timer test fails too often on Travis with MacOS.
Solution: Be less strict with the time.
|
|
|
|
|
| |
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method.
|
|
|
|
|
|
| |
Problem: More functions can be used as methods.
Solution: Make various functions usable as a method. Make the window
command test faster.
|
|
|
|
|
| |
Problem: Still a timer test that is flaky on Mac.
Solution: Loop with a sleep instead of one fixed sleep.
|
|
|
|
|
| |
Problem: Still a timer test that is flaky on Mac.
Solution: Adjust the sleep times.
|
|
|
|
|
| |
Problem: Timer test sometimes fails on Mac.
Solution: Show more info when it fails.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Problem: Timers test is flaky.
Solution: Accept a larger count. Add test to list of flaky tests.
|
|
|
|
|
| |
Problem: Tests use hand coded feature and option checks.
Solution: Use the commands from check.vim in more tests.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Problem: Tests are not run with GUI on Travis.
Solution: Add a testgui job. (Ozaki Kiichi, closes #4609)
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Problem: Shared functions for testing are disorganised.
Solution: Group finctions in script files. (Ozaki Kiichi, closes #4573)
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Problem: Tests are silently skipped.
Solution: Throw an exception for skipped tests in more places.
|
|
|
|
|
| |
Problem: Skipped tests are not properly listed.
Solution: Throw a "Skipped" exception instead of using ":finish" or ":return".
|
|
|
|
|
|
| |
Problem: feedkeys() with "L" does not work properly.
Solution: Do not set typebuf_was_filled when using "L". (Ozaki Kiichi,
closes #3885)
|
|
|
|
|
| |
Problem: When timer fails test will hang forever.
Solution: Use reltime() to limit waiting time. (Ozaki Kiichi, closes #3878)
|
|
|
|
|
| |
Problem: getchar_zero test fails on MS-Windows.
Solution: Disable the test for now.
|
|
|
|
|
| |
Problem: getchar(0) never returns a character in the terminal.
Solution: Call wait_func() at least once.
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Problem: In tests, when WaitFor() fails it doesn't say why.
Solution: Turn a few more WaitFor() into WaitForAssert().
|
|
|
|
|
| |
Problem: Timer test on travis Mac is still flaky.
Solution: Increase time range a bit more.
|
|
|
|
|
| |
Problem: The timer_pause test is flaky on Travis.
Solution: Accept a longer sleep time on Mac.
|
|
|
|
|
| |
Problem: Shared script for tests cannot be included twice.
Solution: Include it where needed, it will "finish" if loaded again.
|
|
|
|
|
|
| |
Problem: Timer causes error on exit from Ex mode. (xtal8)
Solution: save and restore the ex_pressedreturn flag. (Christian Brabandt,
closes #2079)
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Problem: Bufline test hangs on MS-Windows.
Solution: Avoid message for writing file. Source shared.vim when running
test individually.
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Problem: No test for what 8.0.1020 fixes.
Solution: Add test_feedinput(). Add a test. (Ozaki Kiichi, closes #2046)
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Problem: Memory leak in timer_start().
Solution: Check the right field to be NULL.
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Problem: Timer test fails sometimes.
Solution: Reduce minimum time by 1 msec.
|
|
|
|
|
| |
Problem: Timer test sometimes fails.
Solution: Increase the maximum time for callback timer test.
|
|
|
|
|
| |
Problem: Timer test sometimes fails.
Solution: Increase the maximum time for repeating timer.
|
|
|
|
|
| |
Problem: Tests using the sleep time can be flaky.
Solution: Use reltime() if available. (Partly by Shane Harper)
|
|
|
|
|
| |
Problem: Test files have inconsistant modelines.
Solution: Don't set 'tabstop' to 2, use 'sts' and 'sw'.
|