summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_channel.vim
AgeCommit message (Collapse)Author
2016-10-09patch 8.0.0027v8.0.0027Bram Moolenaar
Problem: A channel is closed when reading on stderr or stdout fails, but there may still be something to read on another part. Solution: Turn ch_to_be_closed into a bitfield. (Ozaki Kiichi)
2016-10-03patch 8.0.0022v8.0.0022Bram Moolenaar
Problem: If a channel in NL mode is missing the NL at the end the remaining characters are dropped. Solution: When the channel is closed use the remaining text. (Ozaki Kiichi)
2016-09-26patch 8.0.0015v8.0.0015Bram Moolenaar
Problem: Can't tell which part of a channel has "buffered" status. Solution: Add an optional argument to ch_status(). Let ch_info() also return "buffered" for out_status and err_status.
2016-09-07patch 7.4.2344v7.4.2344Bram Moolenaar
Problem: The "Reading from channel output..." message can be unwanted. Appending to a buffer leaves an empty first line behind. Solution: Add the "out_msg" and "err_msg" options. Writing the first line overwrites the first, empty line.
2016-09-03patch 7.4.2316v7.4.2316Bram Moolenaar
Problem: Channel sort test is flaky. Solution: Add a check the output has been read.
2016-09-01patch 7.4.2301v7.4.2301Bram Moolenaar
Problem: MS-Windows: some files remain after testing. Solution: Close the channel output file. Wait for the file handle to be closed before deleting the file.
2016-09-01patch 7.4.2298v7.4.2298Bram Moolenaar
Problem: It is not possible to close the "in" part of a channel. Solution: Add ch_close_in().
2016-09-01patch 7.4.2297v7.4.2297Bram Moolenaar
Problem: When starting a job that reads from a buffer and reaching the end, the job hangs. Solution: Close the pipe or socket when all lines were read.
2016-08-28patch 7.4.2287v7.4.2287Bram Moolenaar
Problem: The callback passed to ch_sendraw() is not used. Solution: Pass the read part, not the send part. (haya14busa, closes #1019)
2016-08-27patch 7.4.2270v7.4.2270Bram Moolenaar
Problem: Insufficient testing for NUL bytes on a raw channel. Solution: Add a test for writing and reading.
2016-08-26patch 7.4.2260v7.4.2260Bram Moolenaar
Problem: Channel test is flaky. Solution: Add a newline to separate JSON messages.
2016-08-26patch 7.4.2258v7.4.2258Bram Moolenaar
Problem: Two JSON messages are sent without a separator. Solution: Separate messages with a NL. (closes #1001)
2016-07-31patch 7.4.2135v7.4.2135Bram Moolenaar
Problem: Various tiny issues. Solution: Update comments, white space, etc.
2016-07-23patch 7.4.2093v7.4.2093Bram Moolenaar
Problem: Netbeans test fails once in a while. Leaving log file behind. Solution: Add it to the list of flaky tests. Disable logfile.
2016-07-21patch 7.4.2086v7.4.2086Bram Moolenaar
Problem: Using the system default encoding makes tests unpredictable. Solution: Always use utf-8 or latin1 in the new style tests. Remove setting encoding and scriptencoding where it is not needed.
2016-07-19patch 7.4.2071v7.4.2071Bram Moolenaar
Problem: The return value of type() is difficult to use. Solution: Define v:t_ constants. (Ken Takata)
2016-07-15patch 7.4.2044v7.4.2044Bram Moolenaar
Problem: filter() and map() either require a string or defining a function. Solution: Support lambda, a short way to define a function that evaluates an expression. (Yasuhiro Matsumoto, Ken Takata)
2016-07-15patch 7.4.2039v7.4.2039Bram Moolenaar
Problem: The Netbeans integration is not tested. Solution: Add a first Netbeans test.
2016-06-27patch 7.4.1965v7.4.1965Bram Moolenaar
Problem: When using a job in raw mode to append to a buffer garbage characters are added. Solution: Do not replace the trailing NUL with a NL. (Ozaki Kiichi)
2016-06-10patch 7.4.1916v7.4.1916Bram Moolenaar
Problem: No proper test for what 7.4.1906 fixes. Solution: Add a test for reading many lines.
2016-06-05patch 7.4.1902v7.4.1902Bram Moolenaar
Problem: No test for collapsing buffers for a channel. Some text is lost. Solution: Add a simple test. Set rq_buflen correctly.
2016-06-02patch 7.4.1879v7.4.1879Bram Moolenaar
Problem: Channel test is flaky. Solution: Wait for close_cb to be invoked.
2016-06-02patch 7.4.1877v7.4.1877Bram Moolenaar
Problem: No test for invoking "close_cb" when writing to a buffer. Solution: Add using close_cb to a test case.
2016-05-29patch 7.4.1857v7.4.1857Bram Moolenaar
Problem: When a channel appends to a buffer that is 'nomodifiable' there is an error but appending is done anyway. Solution: Add the 'modifiable' option. Refuse to write to a 'nomodifiable' when the value is 1.
2016-05-24patch 7.4.1838v7.4.1838Bram Moolenaar
Problem: Functions specifically for testing do not sort together. Solution: Rename garbagecollect_for_testing() to test_garbagecollect_now(). Add test_null_list(), test_null_dict(), etc.
2016-04-30patch 7.4.1810v7.4.1810Bram Moolenaar
Problem: Sending DETACH after a channel was closed isn't useful. Solution: Only add DETACH for a netbeans channel.
2016-04-30patch 7.4.1807v7.4.1807Bram Moolenaar
Problem: Test_out_close_cb sometimes fails. Solution: Always write DETACH to out, not err.
2016-04-26patch 7.4.1789v7.4.1789Bram Moolenaar
Problem: Cannot use ch_read() in the close callback. Solution: Do not discard the channel if there is readahead. Do not discard readahead if there is a close callback.
2016-04-26patch 7.4.1787v7.4.1787Bram Moolenaar
Problem: When a job ends the close callback is invoked before other callbacks. On Windows the close callback is not called. Solution: First invoke out/err callbacks before the close callback. Make the close callback work on Windows.
2016-04-14patch 7.4.1727v7.4.1727Bram Moolenaar
Problem: Cannot detect a crash in tests when caused by garbagecollect(). Solution: Add garbagecollect_for_testing(). Do not free a job if is still useful.
2016-04-07patch 7.4.1717v7.4.1717Bram Moolenaar
Problem: Leaking memory when opening a channel fails. Solution: Unreference partials in job options.
2016-03-30patch 7.4.1687v7.4.1687Bram Moolenaar
Problem: The channel close_cb option does not work. Solution: Use jo_close_partial instead of jo_err_partial. (Damien)
2016-03-28patch 7.4.1669v7.4.1669Bram Moolenaar
Problem: When writing buffer lines to a pipe Vim may block. Solution: Avoid blocking, write more lines later.
2016-03-27patch 7.4.1665v7.4.1665Bram Moolenaar
Problem: Crash when calling job_start() with a NULL string. (Dominique) Solution: Check for an invalid argument.
2016-03-27patch 7.4.1663v7.4.1663Bram Moolenaar
Problem: In tests it's often useful to check if a pattern matches. Solution: Add assert_match().
2016-03-26patch 7.4.1662v7.4.1662Bram Moolenaar
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.
2016-03-26patch 7.4.1661v7.4.1661Bram Moolenaar
Problem: No test for special characters in channel eval command. Solution: Testing sending and receiving text with special characters.
2016-03-21patch 7.4.1635v7.4.1635Bram Moolenaar
Problem: Channel test is a bit flaky. Solution: Remove 'DETACH' if it's there.
2016-03-20patch 7.4.1627v7.4.1627Bram Moolenaar
Problem: Channel out_cb and err_cb are not tested. Solution: Add a test.
2016-03-20patch 7.4.1624v7.4.1624Bram Moolenaar
Problem: Can't get info about a channel. Solution: Add ch_info().
2016-03-20patch 7.4.1617v7.4.1617Bram Moolenaar
Problem: When a JSON message is split it isn't decoded. Solution: Wait a short time for the rest of the message to arrive.
2016-03-20patch 7.4.1616v7.4.1616Bram Moolenaar
Problem: Malformed channel request causes a hang. Solution: Drop malformed message. (Damien)
2016-03-14patch 7.4.1560v7.4.1560Bram Moolenaar
Problem: Dict options with a dash are more difficult to use. Solution: Use an underscore, so that dict.err_io can be used.
2016-03-12patch 7.4.1543v7.4.1543Bram Moolenaar
Problem: Channel log methods are not tested. Solution: Log job activity and check it.
2016-03-12patch 7.4.1542v7.4.1542Bram Moolenaar
Problem: job_start() with a list is not tested. Solution: Call job_start() with a list.
2016-03-12patch 7.4.1541v7.4.1541Bram Moolenaar
Problem: Missing job_info(). Solution: Implement it.
2016-03-12patch 7.4.1540v7.4.1540Bram Moolenaar
Problem: Channel test is a bit flaky. Solution: Increase expected wait time.
2016-03-11patch 7.4.1536v7.4.1536Bram Moolenaar
Problem: Cannot re-use a channel for another job. Solution: Add the "channel" option to job_start().
2016-03-09patch 7.4.1529v7.4.1529Bram Moolenaar
Problem: Specifying buffer number for channel not implemented yet. Solution: Implement passing a buffer number.
2016-03-09patch 7.4.1526v7.4.1526Bram Moolenaar
Problem: Writing to file and not connecting a channel doesn't work for MS-Windows. Solution: Make it work. (Yasuhiro Matsumoto)