| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Problem: Sometimes a channel may hang waiting for a message that was
already discarded. (Ken Takata)
Solution: Store the ID of the message blocking on in the channel.
|
|
|
|
|
|
| |
Problem: Some compilers complain about uninitialzed variable, even though
all possible cases are handled. (Dominique Pelle)
Solution: Add a default initialization.
|
|
|
|
|
| |
Problem: On MS-Windows the channel test server doesn't quit.
Solution: Use return instead of break. (Ken Takata)
|
| |
|
|
|
|
|
| |
Problem: Coverity complains about uneccessary check for NULL.
Solution: Remove the check.
|
|
|
|
|
| |
Problem: Channel test fails on MS-Windows, connect() takes too long.
Solution: Adjust the test for MS-Windows using "waittime".
|
|
|
|
|
|
| |
Problem: ch_sendexpr() does not use JS encoding.
Solution: Use the encoding that fits the channel mode. Refuse using
ch_sendexpr() on a raw channel.
|
|
|
|
|
| |
Problem: Channel test fails.
Solution: Use reltimefloat().
|
|
|
|
|
|
| |
Problem: ch_open() with a timeout doesn't work correctly.
Solution: Change how select() is used. Don't give an error on timeout.
Add a test for ch_open() failing.
|
| |
|
|
|
|
|
| |
Problem: Cannot measure elapsed time.
Solution: Add reltimefloat().
|
|
|
|
|
| |
Problem: Test 49 fails.
Solution: Check for a different error message.
|
|
|
|
|
|
| |
Problem: The job feature isn't available on MS-Windows.
Solution: Add the job feature. Fix argument of job_stop(). (Yasuhiro
Matsumoto)
|
|
|
|
|
|
| |
Problem: Crash when evaluating the pattern of ":catch" causes an error.
(Dominique Pelle)
Solution: Block error messages at this point.
|
|
|
|
|
| |
Problem: No test for skipping over code that isn't evaluated.
Solution: Add a test with code that would fail when not skipped.
|
|
|
|
|
| |
Problem: Missing case value.
Solution: Add VAR_JOB.
|
|
|
|
|
|
| |
Problem: jsonencode() is not producing strict JSON.
Solution: Add jsencode() and jsdecode(). Make jsonencode() and jsondecode()
strict.
|
|
|
|
|
| |
Problem: When jsonencode() fails it still returns something.
Solution: Return an empty string on failure.
|
|
|
|
|
|
| |
Problem: Compiler can complain about missing enum value in switch with some
combination of features.
Solution: Remove #ifdefs around case statements.
|
|
|
|
|
| |
Problem: Warning for not using return value of fcntl().
Solution: Explicitly ignore the return value.
|
|
|
|
|
| |
Problem: Build fails on MS-Windows.
Solution: Fix wrong #ifdef.
|
|
|
|
|
|
| |
Problem: Cannot run a job.
Solution: Add job_start(), job_status() and job_stop(). Currently only works
for Unix.
|
|
|
|
|
| |
Problem: assert_false(v:false) still fails.
Solution: Fix the typo.
|
|
|
|
|
| |
Problem: Using future enum value.
Solution: Remove it.
|
|
|
|
|
| |
Problem: assert_false(v:false) reports an error. (Nikolai Pavlov)
Solution: Recognize v:true and v:false. (Closes #625)
|
|
|
|
|
| |
Problem: Warnings for missing values in switch.
Solution: Change switch to if-else or add values.
|
|
|
|
|
| |
Problem: Encoding {'key':} to JSON doesn't give an error (Tyru)
Solution: Give an error.
|
|
|
|
|
|
| |
Problem: Waittime is used as seconds instead of milliseconds. (Hirohito
Higashi)
Solution: Divide by 1000.
|
|
|
|
|
| |
Problem: Easy to miss handling all types of variables.
Solution: Change the variable type into an enum.
|
|
|
|
|
|
| |
Problem: A BufAdd autocommand may cause an ml_get error (Christian
Brabandt)
Solution: Increment RedrawingDisabled earlier.
|
|
|
|
|
| |
Problem: Not all channel commands are tested.
Solution: Add a test for "normal", "expr" and "redraw".
|
|
|
|
|
| |
Problem: Crash when receiving an empty array.
Solution: Check for array with wrong number of arguments. (Damien)
|
|
|
|
|
| |
Problem: ch_open() hangs when the server isn't running.
Solution: Add a timeout. Use a dict to pass arguments. (Yasuhiro Matsumoto)
|
|
|
|
|
| |
Problem: The channel callback is not invoked.
Solution: Make a list of pending callbacks.
|
|
|
|
|
|
|
| |
Problem: Pending channel messages are garbage collected. Leaking memory in
ch_sendexpr(). Leaking memory for a decoded JSON string.
Solution: Mark the message list as used. Free the encoded JSON. Don't save
the JSON string.
|
|
|
|
|
| |
Problem: The channel feature doesn't work on Win32 GUI.
Solution: Use WSAGetLastError(). (Ken Takata)
|
|
|
|
|
| |
Problem: No test for what patch 7.3.414 fixed.
Solution: Add a test. (Elias Diem)
|
|
|
|
|
| |
Problem: The channel test can fail if messages arrive later.
Solution: Add a short sleep. (Jun T.)
|
| |
|
|
|
|
|
| |
Problem: Channel test fails in some configurations.
Solution: Add check for the +channel feature.
|
|
|
|
|
| |
Problem: On Mac sys.exit(0) doesn't kill the test server.
Solution: Use self.server.shutdown(). (Jun Takimoto)
|
|
|
|
|
| |
Problem: Crash for channel "eval" command without third argument.
Solution: Check for missing argument.
|
|
|
|
|
| |
Problem: Opening a second channel causes a crash. (Ken Takata)
Solution: Don't re-allocate the array with channels.
|
|
|
|
|
|
| |
Problem: Python test server not displaying second of two commands.
Solaris doesn't have "pkill --full".
Solution: Also echo the second command. Use "pkill -f".
|
|
|
|
|
| |
Problem: The channel test server may receive two messages concatenated.
Solution: Split the messages.
|
|
|
|
|
| |
Problem: New test file missing from distribution.
Solution: Add src/testdir/*.py.
|
|
|
|
|
| |
Problem: Running tests in shadow directory fails.
Solution: Also link testdir/*.py
|
|
|
|
|
|
| |
Problem: Crash when the process a channel is connected to exits.
Solution: Use the file descriptor properly. Add a test. (Damien)
Also add a test for eval().
|
|
|
|
|
|
|
| |
Problem: Can't reliably stop the channel test server. Can't start the
server if the python file is not executable.
Solution: Use "pkill" instead of "killall". Run the python file as an
argument instead of as an executable.
|
|
|
|
|
| |
Problem: The channel test doesn't run on MS-Windows.
Solution: Make it work on the MS-Windows console. (Ken Takata)
|