]> granicus.if.org Git - vim/commitdiff
patch 8.2.0702: running channel tests may leave running process behind v8.2.0702
authorBram Moolenaar <Bram@vim.org>
Wed, 6 May 2020 17:38:30 +0000 (19:38 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 6 May 2020 17:38:30 +0000 (19:38 +0200)
Problem:    Running channel tests may leave running process behind.
Solution:   Make Python client exit when running into EOF. (Kurtis Rader,
            part of #6046)

src/testdir/test_channel_pipe.py
src/version.c

index 5caffcbf9e345b1ab80113065725aff8edb73268..5202908e7eddde861ed8e468d423f1617a78d554 100644 (file)
@@ -29,6 +29,8 @@ if __name__ == "__main__":
 
     while True:
         typed = sys.stdin.readline()
+        if typed == "":  # EOF -- stop
+            break
         if typed.startswith("quit"):
             print("Goodbye!")
             sys.stdout.flush()
index 0dc91da61a33ef757906c289daf67003d1558fdc..523791ca0fdf03c56387f62d43625f7c3763c93b 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    702,
 /**/
     701,
 /**/