fish-shell/tests/pexpects
Peter Ammon 5c8b6adc2c
Some checks failed
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run
Lock threads / lock (push) Has been cancelled
Fix infinite prompt loop if status message is printed in prompt
fish will print messages for some jobs when they exit abnormally, such as
with SIGABRT. If a job exits abnormally inside the prompt, then (prior to
this commit) fish would print the message and re-trigger the prompt, which
could result in an infinite loop. This has existed for a very long time.

Fix it by reaping jobs after running the prompt, and NOT triggering a
redraw based on that reaping. We still print the message but the prompt is
not executed.

Add a test.

Fixes #9796
2024-12-08 18:12:59 -08:00
..
abbrs.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
bind_mode_events.py Make bind_mode_events.py pass on Mac again 2024-05-06 10:26:32 -07:00
bind.py reader: Remove a panic 2024-06-10 17:14:13 +02:00
cancel_event.py Control-C to simply clear commandline buffer again 2024-01-17 19:54:57 +01:00
commandline.py Add pexpect test for commandline --showing-suggestion 2024-07-07 22:34:36 -05:00
complete-group-order.py complete: Sort --keep-order completions smaller 2024-10-05 13:53:02 +02:00
complete.py Disable terminal protocols throughout evaluation 2024-04-02 21:25:47 +02:00
cursor_selection.py Restyle fishscript and python 2023-06-01 18:20:19 +02:00
disable_mouse.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
eval-stack-overflow.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
exit_handlers.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
exit_nohang.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
exit.py Reformat 2020-11-22 14:39:48 +01:00
fg.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
fkr.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
generic.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
histfile.py Fix the histfile.py test 2024-06-02 15:31:19 -07:00
history.py Work around wants_terminal not begin set inside eval 2024-05-18 20:55:06 +02:00
isatty.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
job_summary.py tests/pexpect: Fix \d escape 2024-04-02 22:41:54 +02:00
nullterm.py Be careful to not touch curses variables if cur_term is null 2022-04-16 13:26:56 -07:00
pipeline.py Improve error for redirections to invalid paths 2021-11-20 17:44:05 +01:00
postexec.py Reformat 2020-11-22 14:39:48 +01:00
private_mode.py Restyle fishscript and python 2023-06-01 18:20:19 +02:00
prompt_redraw_loop.py Fix infinite prompt loop if status message is printed in prompt 2024-12-08 18:12:59 -08:00
read.py Disable terminal protocols before cancellable operations 2024-11-24 16:11:57 +01:00
set_color.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
sigint.py Add missing expect_prompt to test_sigint.py 2024-01-07 00:54:22 +01:00
signals.py Disable terminal protocols before cancellable operations 2024-11-24 16:11:57 +01:00
status.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
stdin_nonblocking.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00
terminal.py Disable terminal protocols throughout evaluation 2024-04-02 21:25:47 +02:00
torn_escapes.py Help the torn_escapes test pass on Mac 2024-05-06 10:26:32 -07:00
tty_ownership.py Claim the tty unconditionally in reader_data_t::readline 2022-09-09 13:43:29 -07:00
undo.py Fix the undo pexpect 2024-06-02 14:17:36 -07:00
wait.py share/config.fish: Quit if job expansion hack errors 2023-06-10 15:36:36 +02:00
wildcard_tab.py Remove some unused code from the tests 2024-12-08 13:57:10 -08:00