Hi Heinrich, On Sat, 25 Jul 2020 at 09:05, Heinrich Schuchardt <[email protected]> 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 <[email protected]> > --- > 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? Regards, SImon

