Commit 2bbd99c
committed
test: check TTY mode reset on exit
Before PR 20592, closing all handles associated with the main
event loop would also mean that `uv_tty_reset_mode()`
can’t function properly because the corresponding FDs have
already been closed.
Add regression tests for this condition.
Refs: #21020
Refs: #20592
PR-URL: #21027
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 4012e05 commit 2bbd99cCopy full SHA for 2bbd99c
File tree
Expand file treeCollapse file tree
6 files changed
+61
-0
lines changedOpen diff view settings
Filter options
- test/pseudo-tty
Expand file treeCollapse file tree
6 files changed
+61
-0
lines changedOpen diff view settings
Collapse file
test/pseudo-tty/test-set-raw-mode-reset-process-exit.js
Copy file name to clipboard+18Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
Collapse file
test/pseudo-tty/test-set-raw-mode-reset-process-exit.out
Copy file name to clipboardExpand all lines: test/pseudo-tty/test-set-raw-mode-reset-process-exit.outWhitespace-only changes.
Collapse file
test/pseudo-tty/test-set-raw-mode-reset-signal.js
Copy file name to clipboard+24Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
Collapse file
test/pseudo-tty/test-set-raw-mode-reset-signal.out
Copy file name to clipboardExpand all lines: test/pseudo-tty/test-set-raw-mode-reset-signal.outWhitespace-only changes.
Collapse file
test/pseudo-tty/test-set-raw-mode-reset.js
Copy file name to clipboard+19Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
Collapse file
test/pseudo-tty/test-set-raw-mode-reset.out
Copy file name to clipboardExpand all lines: test/pseudo-tty/test-set-raw-mode-reset.outWhitespace-only changes.
0 commit comments