comparison src/eval.c @ 11848:f5968ca369b5 v8.0.0804

patch 8.0.0804: running tests fails when stdin is /dev/null commit https://github.com/vim/vim/commit/91d348abfc0d7ac9b5b19cde0112de8ae4335602 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 29 20:16:03 2017 +0200 patch 8.0.0804: running tests fails when stdin is /dev/null Problem: Running tests fails when stdin is /dev/null. (James McCoy) Solution: Do not bail out from getting input if the --not-a-term argument was given. (closes #1460)
author Christian Brabandt <cb@256bit.org>
date Sat, 29 Jul 2017 20:30:05 +0200
parents 5630978ae089
children aec3df2af27c
comparison
equal deleted inserted replaced
11847:2b275a983fc1 11848:f5968ca369b5
8068 8068
8069 rettv->v_type = VAR_STRING; 8069 rettv->v_type = VAR_STRING;
8070 rettv->vval.v_string = NULL; 8070 rettv->vval.v_string = NULL;
8071 8071
8072 #ifdef NO_CONSOLE_INPUT 8072 #ifdef NO_CONSOLE_INPUT
8073 /* While starting up, there is no place to enter text. */ 8073 /* While starting up, there is no place to enter text. When running tests
8074 if (no_console_input()) 8074 * with --not-a-term we assume feedkeys() will be used. */
8075 if (no_console_input() && !is_not_a_term())
8075 return; 8076 return;
8076 #endif 8077 #endif
8077 8078
8078 cmd_silent = FALSE; /* Want to see the prompt. */ 8079 cmd_silent = FALSE; /* Want to see the prompt. */
8079 if (prompt != NULL) 8080 if (prompt != NULL)