On 6/11/25 16:19, Peter Maydell wrote:
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 <[email protected]>
---
  system/qtest.c | 9 ++++++++-
  1 file changed, 8 insertions(+), 1 deletion(-)

Queued, thanks.

Reply via email to