You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/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>
2 weeks ago
..
arch_init.c system: Replace arch_type global by qemu_arch_available() helper 9 months ago
async-teardown.c qemu/osdep: Add excluded fd parameter to qemu_close_all_open_fd() 1 year ago
balloon.c include: Rename sysemu/ -> system/ 12 months ago
bootdevice.c include: Rename sysemu/ -> system/ 12 months ago
cpu-timers.c cpus: properly kick CPUs out of inner execution loop 3 months ago
cpus.c bql: Fix bql_locked status with condvar APIs 1 month ago
datadir.c pc-bios: Move device tree files in their own subdir 8 months ago
device_tree-stub.c hw/core/machine.c: Make -machine dumpdtb=file.dtb with no DTB an error 10 months ago
device_tree.c hw/core/loader: capture Error from load_image_targphys 1 month ago
dirtylimit.c Miscellaneous patches for 2025-04-24 8 months ago
dma-helpers.c include/exec: Split out icount.h 8 months ago
exit-with-parent.c Implement -run-with exit-with-parent=on 1 month ago
globals-target.c system: Extract target-specific globals to their own compilation unit 9 months ago
globals.c system: drop the -old-param option 3 months ago
ioport.c include/system: Move exec/ioport.h to system/ioport.h 8 months ago
main.c system/main: comment lock rationale 7 months ago
memory-internal.h system/memory: Remove DEVICE_HOST_ENDIAN definition 8 months ago
memory.c system/physmem: Extract API out of 'system/ram_addr.h' header 2 months ago
memory_ldst.c.inc system/physmem: Drop 'cpu_' prefix in Physical Memory API 2 months ago
memory_mapping.c include/system: Move exec/address-spaces.h to system/address-spaces.h 8 months ago
meson.build Implement -run-with exit-with-parent=on 1 month ago
physmem.c system/physmem: mark io_mem_unassigned lockless 1 month ago
qdev-monitor.c qdev: add qdev_find_default_bus() 1 month ago
qemu-seccomp.c include: Rename sysemu/ -> system/ 12 months ago
qtest.c qtest: Allow and ignore blank lines in input 2 weeks ago
ram-block-attributes.c ram-block-attributes: Unify the retrieval of the block size 1 month ago
rtc.c include: Rename sysemu/ -> system/ 12 months ago
runstate-action.c include: Rename sysemu/ -> system/ 12 months ago
runstate-hmp-cmds.c qapi: Move include/qapi/qmp/ to include/qobject/ 10 months ago
runstate.c audio: move audio.h under include/qemu/ 1 month ago
tpm-hmp-cmds.c system: Rename softmmu/ directory as system/ 2 years ago
tpm.c tpm: "qemu -tpmdev help" should return success 5 months ago
trace-events ram-block-attributes: Introduce RamBlockAttributes to manage RAMBlock with guest_memfd 6 months ago
trace.h system: Rename softmmu/ directory as system/ 2 years ago
vl.c Implement -run-with exit-with-parent=on 1 month ago
watchpoint.c include/exec: Split out watchpoint.h 8 months ago