[PATCH 1/1] sandbox: support CTRL-C processing in U-Boot
sjg at chromium.org
Tue Jul 28 01:17:54 CEST 2020
On Sat, 25 Jul 2020 at 09:05, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> Currently if SIGINT is received, it terminates U-Boot. This does not allow
> testing the handling of CTRL-C in U-Boot and in UEFI applications.
> Let the serial console driver provide character 0x03 if SIGINT occurs. We
> can still exit U-Boot using the poweroff command.
> Adjust the sandbox test_ctrl_c() Python test accordingly.
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> arch/sandbox/cpu/os.c | 15 ++++++++++++---
> drivers/serial/sandbox.c | 11 ++++++++---
> include/os.h | 14 ++++++++++++++
> test/py/tests/test_sandbox_exit.py | 9 ++++++++-
> 4 files changed, 42 insertions(+), 7 deletions(-)
I do want Ctrl-C to work. It is just too annoying otherwise.
It looks to me like you may want to add a fourth terminal mode? Or
perhaps make it changeable at run-time so you can select a particular
mode for running a test?
More information about the U-Boot