qemu-cr16/system
Peter Maydell 3de6afef49 qtest: Allow and ignore blank lines in input
Currently the code that reads the qtest protocol commands insists
that every input line has a command.  If it receives a line with
nothing but whitespace it will trip an assertion in
qtest_process_command().

This is a little awkward for the case where we are feeding qtest a
set of bug-reproduction commands via standard input or a file,
because it means you need to be careful not to leave a blank line at
the start or the end when cutting and pasting the command sequence
from a bug report.

Change the code to allow and ignore blank lines in the input.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Message-ID: <20251106151959.1088095-1-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2025-11-25 22:41:37 +01:00
..
arch_init.c
async-teardown.c
balloon.c
bootdevice.c
cpu-timers.c
cpus.c
datadir.c
device_tree-stub.c
device_tree.c
dirtylimit.c
dma-helpers.c
exit-with-parent.c
globals-target.c
globals.c
ioport.c
main.c
memory-internal.h
memory.c
memory_ldst.c.inc
memory_mapping.c
meson.build
physmem.c system/physmem: mark io_mem_unassigned lockless 2025-11-03 16:04:10 -05:00
qdev-monitor.c
qemu-seccomp.c
qtest.c qtest: Allow and ignore blank lines in input 2025-11-25 22:41:37 +01:00
ram-block-attributes.c
rtc.c
runstate-action.c
runstate-hmp-cmds.c
runstate.c
tpm-hmp-cmds.c
tpm.c
trace-events
trace.h
vl.c
watchpoint.c