diff src/testdir/test_terminal.vim @ 11951:e8b1ef40324a v8.0.0855

patch 8.0.0855: MS-Windows: can't get tty name of terminal commit https://github.com/vim/vim/commit/5be8dd087f36affa492ef6049fa813b376210543 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 3 20:52:19 2017 +0200 patch 8.0.0855: MS-Windows: can't get tty name of terminal Problem: MS-Windows: can't get tty name of terminal. Solution: Use the winpty process number. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/1929)
author Christian Brabandt <cb@256bit.org>
date Thu, 03 Aug 2017 21:00:04 +0200
parents ef1febf04d03
children baa2edd33f5d
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -34,7 +34,8 @@ func Test_terminal_basic()
     call assert_match("^/dev/", job_info(g:job).tty)
     call assert_match("^/dev/", term_gettty(''))
   else
-    call assert_equal("", job_info(g:job).tty)
+    call assert_match("^winpty://", job_info(g:job).tty)
+    call assert_match("^winpty://", term_gettty(''))
   endif
   call Stop_shell_in_terminal(buf)
   call term_wait(buf)