Commit 90e1711
patch 9.1.2013: tests: Test_terminal_shell_option fails with conpty
Problem: tests: When opening a conpty terminal, if process startup
fails, it will silently exit. As a result, the
Test_terminal_shell_option in test_terminal3.vim failed in
conpty.
In a winpty terminal, the winpty-provided error message
"CreateProcess failed" was displayed. The test is designed to
catch this error as an exception.
Solution: Make conpty fail with an error messages in the same way as winpty.
(Muraoka Taro)
In addition, since the GetWin32Error() function can obtain more detailed
error messages, the format has been changed to "CreateProcess failed:
{localized message from the OS}" for conpty.
Also, since the GetWin32Error() function returns errors in ACP (Active
Code Page) encoding, these have been converted to Vim's internal
encoding, enc. This will prevent messages from being garbled in
Japanese environments, etc. The output of this function was basically
used by the semsg() function in other places, so this change also fixes
potential similar garbled characters.
The test now errors out immediately in places where it is expected not
to be reached, and comments have been added about the expected content
of the winpty and conpty error messages.
closes: #18998
Signed-off-by: Muraoka Taro <koron.kaoriya@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>1 parent cbcc5ba commit 90e1711
4 files changed
Lines changed: 39 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9074 | 9074 | | |
9075 | 9075 | | |
9076 | 9076 | | |
9077 | | - | |
9078 | | - | |
| 9077 | + | |
| 9078 | + | |
| 9079 | + | |
| 9080 | + | |
| 9081 | + | |
| 9082 | + | |
| 9083 | + | |
| 9084 | + | |
| 9085 | + | |
| 9086 | + | |
| 9087 | + | |
| 9088 | + | |
9079 | 9089 | | |
9080 | | - | |
9081 | | - | |
| 9090 | + | |
9082 | 9091 | | |
9083 | | - | |
9084 | | - | |
| 9092 | + | |
| 9093 | + | |
| 9094 | + | |
| 9095 | + | |
| 9096 | + | |
| 9097 | + | |
| 9098 | + | |
| 9099 | + | |
9085 | 9100 | | |
9086 | 9101 | | |
9087 | 9102 | | |
9088 | | - | |
| 9103 | + | |
9089 | 9104 | | |
9090 | 9105 | | |
9091 | | - | |
9092 | | - | |
| 9106 | + | |
| 9107 | + | |
| 9108 | + | |
9093 | 9109 | | |
9094 | 9110 | | |
9095 | 9111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7048 | 7048 | | |
7049 | 7049 | | |
7050 | 7050 | | |
| 7051 | + | |
7051 | 7052 | | |
7052 | 7053 | | |
7053 | 7054 | | |
| |||
7149 | 7150 | | |
7150 | 7151 | | |
7151 | 7152 | | |
| 7153 | + | |
| 7154 | + | |
7152 | 7155 | | |
| 7156 | + | |
7153 | 7157 | | |
7154 | 7158 | | |
7155 | 7159 | | |
| |||
7257 | 7261 | | |
7258 | 7262 | | |
7259 | 7263 | | |
| 7264 | + | |
| 7265 | + | |
| 7266 | + | |
7260 | 7267 | | |
7261 | 7268 | | |
7262 | 7269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| 737 | + | |
| 738 | + | |
737 | 739 | | |
738 | 740 | | |
739 | 741 | | |
| |||
0 commit comments