summaryrefslogtreecommitdiff
path: root/src/testdir/test_channel.py
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.0.0122v8.0.0122Bram Moolenaar2016-12-031-0/+3
| | | | | Problem: Channel test is still flaky on OS X. Solution: Add a short sleep.
* patch 7.4.2258v7.4.2258Bram Moolenaar2016-08-261-3/+3
| | | | | Problem: Two JSON messages are sent without a separator. Solution: Separate messages with a NL. (closes #1001)
* patch 7.4.1662v7.4.1662Bram Moolenaar2016-03-261-0/+5
| | | | | | Problem: No test for an invalid Ex command on a channel. Solution: Test handling an invalid command gracefully. Avoid getting an error message, do write it to the channel log.
* patch 7.4.1661v7.4.1661Bram Moolenaar2016-03-261-2/+14
| | | | | Problem: No test for special characters in channel eval command. Solution: Testing sending and receiving text with special characters.
* patch 7.4.1621v7.4.1621Bram Moolenaar2016-03-201-24/+24
| | | | | Problem: Channel test doesn't work with Python 2.6. Solution: Add number in formatting placeholder. (Wiredool)
* patch 7.4.1617v7.4.1617Bram Moolenaar2016-03-201-1/+26
| | | | | Problem: When a JSON message is split it isn't decoded. Solution: Wait a short time for the rest of the message to arrive.
* patch 7.4.1616v7.4.1616Bram Moolenaar2016-03-201-0/+5
| | | | | Problem: Malformed channel request causes a hang. Solution: Drop malformed message. (Damien)
* patch 7.4.1493v7.4.1493Bram Moolenaar2016-03-051-0/+5
| | | | | | Problem: Wrong callback invoked for zero-id messages. Solution: Don't use the first one-time callback when the sequence number doesn't match.
* patch 7.4.1483v7.4.1483Bram Moolenaar2016-03-031-0/+3
| | | | | Problem: A one-time callback is not used for a raw channel. Solution: Use a one-time callback when it exists.
* patch 7.4.1398v7.4.1398Bram Moolenaar2016-02-231-0/+4
| | | | | Problem: The close-cb option is not implemented yet. Solution: Implemente close-cb. (Yasuhiro Matsumoto)
* patch 7.4.1373v7.4.1373Bram Moolenaar2016-02-201-4/+12
| | | | | | | Problem: Calling a Vim function over a channel requires turning the arguments into a string. Solution: Add the "call" command. (Damien) Also merge "expr" and "eval" into one.
* patch 7.4.1370v7.4.1370Bram Moolenaar2016-02-201-0/+5
| | | | | Problem: The Python test script may keep on running. Solution: Join the threads. (Yasuhiro Matsumoto)
* patch 7.4.1351v7.4.1351Bram Moolenaar2016-02-181-4/+18
| | | | | | | Problem: When the port isn't opened yet when ch_open() is called it may fail instead of waiting for the specified time. Solution: Loop when select() succeeds but when connect() failed. Also use channel logging for jobs. Add ch_log().
* patch 7.4.1315v7.4.1315Bram Moolenaar2016-02-131-7/+1
| | | | | Problem: Using a channel handle does not allow for freeing it when unused. Solution: Add the Channel variable type.
* patch 7.4.1299v7.4.1299Bram Moolenaar2016-02-101-3/+16
| | | | | | | Problem: When the server sends a message with ID zero the channel handler is not invoked. (Christian J. Robinson) Solution: Recognize zero value for the request ID. Add a test for invoking the channel handler.
* patch 7.4.1291v7.4.1291Bram Moolenaar2016-02-081-1/+1
| | | | | Problem: On MS-Windows the channel test server doesn't quit. Solution: Use return instead of break. (Ken Takata)
* patch 7.4.1278v7.4.1278Bram Moolenaar2016-02-071-0/+7
| | | | | Problem: When jsonencode() fails it still returns something. Solution: Return an empty string on failure.
* patch 7.4.1265v7.4.1265Bram Moolenaar2016-02-051-0/+22
| | | | | Problem: Not all channel commands are tested. Solution: Add a test for "normal", "expr" and "redraw".
* patch 7.4.1264v7.4.1264Bram Moolenaar2016-02-051-4/+7
| | | | | Problem: Crash when receiving an empty array. Solution: Check for array with wrong number of arguments. (Damien)
* patch 7.4.1256v7.4.1256Bram Moolenaar2016-02-041-4/+5
| | | | | Problem: On Mac sys.exit(0) doesn't kill the test server. Solution: Use self.server.shutdown(). (Jun Takimoto)
* patch 7.4.1255v7.4.1255Bram Moolenaar2016-02-031-2/+8
| | | | | Problem: Crash for channel "eval" command without third argument. Solution: Check for missing argument.
* patch 7.4.1254v7.4.1254Bram Moolenaar2016-02-031-10/+4
| | | | | Problem: Opening a second channel causes a crash. (Ken Takata) Solution: Don't re-allocate the array with channels.
* patch 7.4.1253v7.4.1253Bram Moolenaar2016-02-031-11/+13
| | | | | | 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".
* patch 7.4.1252v7.4.1252Bram Moolenaar2016-02-031-49/+62
| | | | | Problem: The channel test server may receive two messages concatenated. Solution: Split the messages.
* patch 7.4.1249v7.4.1249Bram Moolenaar2016-02-031-1/+22
| | | | | | 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().
* patch 7.4.1248v7.4.1248Bram Moolenaar2016-02-031-0/+0
| | | | | | | 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.
* patch 7.4.1247v7.4.1247Bram Moolenaar2016-02-031-6/+0
| | | | | Problem: The channel test doesn't run on MS-Windows. Solution: Make it work on the MS-Windows console. (Ken Takata)
* Make the python script executable.Bram Moolenaar2016-02-021-0/+0
|
* patch 7.4.1246v7.4.1246Bram Moolenaar2016-02-021-0/+110
Problem: The channel functionality isn't tested. Solution: Add a test using a Python test server.